Commit 50a681c4 by Jan Hubicka Committed by Jan Hubicka

condition_variable.cc (condition_variable, [...]): Mark throw()


	* src/condition_variable.cc (condition_variable,
	condition_variable_any constructors): Mark throw()
	* src/hash.cc (operator() for long double, string, and wstring): Mark
	throw ().
	* src/strstream.cc (strstreambuf constructors, freeze, str, pcount,
	_M_setup, rdbuf, str): Mark throw ().
	* src/chrono.cc (new): Mark throw ().
	* include/std/system_error (system_category, generic_category): Mark
	throw () and const.
	* include/std/chrono (now): Mark throw ().
	* include/std/condition_variable (condition_variable,
	~condition_variable, condition_variable_any,
	~condition_variable_any): Mark throw ().
	* include/std/mutex (mutex): Mark throw ().
	* include/bits/stl_list.h (swap, transfer, reverse, hook, unhook): Mark
	throw.
	* include/bits/functional_hash.h (operator()  on size_t): Mark pure and throw ().
	* include/bits/locale_facets.tcc (__verify_grouping): Mark pure.
	* include/bits/locale_classes.h (_S_initialize_once,
	_S_clone_c_locale): Mark throw ().
	(_S_get_c_name): Mark const and throw ().
	(_M_id, _M_compare, _M_transform, _M_compare, _M_transform): Mark throw ().
	* include/bits/locale_facets.h (__convert_to_v explicit instances):
	Mark throw ().
	(_M_convert_to_wmask, _M_initialize_ctype, _S_format_float): Mark throw ().
	* include/bits/ios_base.h (_M_dispose_callbacks, _M_init, imbue,
	ios_base): Mark throw ()
	* include/bits/locale_facets_nonio.h (_M_put): Mark throw.
	* include/backward/strstream (strstreambuf constructors): Mark throw ().
	(str, freeze, _M_setupf): Mark throw ().
	(pcount): Mark pure and throw ().
	(rdbuf): Mark const and throw ().

From-SVN: r146328
parent 61cc8223
2009-04-18 Jan Hubicka <jh@suse.cz>
* src/condition_variable.cc (condition_variable,
condition_variable_any constructors): Mark throw()
* src/hash.cc (operator() for long double, string, and wstring): Mark
throw ().
* src/strstream.cc (strstreambuf constructors, freeze, str, pcount,
_M_setup, rdbuf, str): Mark throw ().
* src/chrono.cc (new): Mark throw ().
* include/std/system_error (system_category, generic_category): Mark
throw () and const.
* include/std/chrono (now): Mark throw ().
* include/std/condition_variable (condition_variable,
~condition_variable, condition_variable_any,
~condition_variable_any): Mark throw ().
* include/std/mutex (mutex): Mark throw ().
* include/bits/stl_list.h (swap, transfer, reverse, hook, unhook): Mark
throw.
* include/bits/functional_hash.h (operator() on size_t): Mark pure and throw ().
* include/bits/locale_facets.tcc (__verify_grouping): Mark pure.
* include/bits/locale_classes.h (_S_initialize_once,
_S_clone_c_locale): Mark throw ().
(_S_get_c_name): Mark const and throw ().
(_M_id, _M_compare, _M_transform, _M_compare, _M_transform): Mark throw ().
* include/bits/locale_facets.h (__convert_to_v explicit instances):
Mark throw ().
(_M_convert_to_wmask, _M_initialize_ctype, _S_format_float): Mark throw ().
* include/bits/ios_base.h (_M_dispose_callbacks, _M_init, imbue,
ios_base): Mark throw ()
* include/bits/locale_facets_nonio.h (_M_put): Mark throw.
* include/backward/strstream (strstreambuf constructors): Mark throw ().
(str, freeze, _M_setupf): Mark throw ().
(pcount): Mark pure and throw ().
(rdbuf): Mark const and throw ().
2009-04-18 Paolo Carlini <paolo.carlini@oracle.com> 2009-04-18 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/39802 PR libstdc++/39802
......
...@@ -66,20 +66,20 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -66,20 +66,20 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
explicit strstreambuf(streamsize __initial_capacity = 0); explicit strstreambuf(streamsize __initial_capacity = 0);
strstreambuf(void* (*__alloc)(size_t), void (*__free)(void*)); strstreambuf(void* (*__alloc)(size_t), void (*__free)(void*));
strstreambuf(char* __get, streamsize __n, char* __put = 0); strstreambuf(char* __get, streamsize __n, char* __put = 0) throw ();
strstreambuf(signed char* __get, streamsize __n, signed char* __put = 0); strstreambuf(signed char* __get, streamsize __n, signed char* __put = 0) throw ();
strstreambuf(unsigned char* __get, streamsize __n, unsigned char* __put=0); strstreambuf(unsigned char* __get, streamsize __n, unsigned char* __put=0) throw ();
strstreambuf(const char* __get, streamsize __n); strstreambuf(const char* __get, streamsize __n) throw ();
strstreambuf(const signed char* __get, streamsize __n); strstreambuf(const signed char* __get, streamsize __n) throw ();
strstreambuf(const unsigned char* __get, streamsize __n); strstreambuf(const unsigned char* __get, streamsize __n) throw ();
virtual ~strstreambuf(); virtual ~strstreambuf();
public: public:
void freeze(bool = true); void freeze(bool = true) throw ();
char* str(); char* str() throw ();
int pcount() const; _GLIBCXX_PURE int pcount() const throw ();
protected: protected:
virtual int_type overflow(int_type __c = _Traits::eof()); virtual int_type overflow(int_type __c = _Traits::eof());
...@@ -103,7 +103,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -103,7 +103,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
void _M_free(char*); void _M_free(char*);
// Helper function used in constructors. // Helper function used in constructors.
void _M_setup(char* __get, char* __put, streamsize __n); void _M_setup(char* __get, char* __put, streamsize __n) throw ();
private: private:
// Data members. // Data members.
...@@ -125,8 +125,8 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -125,8 +125,8 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
istrstream(const char*, streamsize); istrstream(const char*, streamsize);
virtual ~istrstream(); virtual ~istrstream();
strstreambuf* rdbuf() const; _GLIBCXX_CONST strstreambuf* rdbuf() const throw ();
char* str(); char* str() throw ();
private: private:
strstreambuf _M_buf; strstreambuf _M_buf;
...@@ -140,10 +140,10 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -140,10 +140,10 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
ostrstream(char*, int, ios_base::openmode = ios_base::out); ostrstream(char*, int, ios_base::openmode = ios_base::out);
virtual ~ostrstream(); virtual ~ostrstream();
strstreambuf* rdbuf() const; _GLIBCXX_CONST strstreambuf* rdbuf() const throw ();
void freeze(bool = true); void freeze(bool = true) throw();
char* str(); char* str() throw ();
int pcount() const; _GLIBCXX_PURE int pcount() const throw ();
private: private:
strstreambuf _M_buf; strstreambuf _M_buf;
...@@ -162,10 +162,10 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -162,10 +162,10 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
strstream(char*, int, ios_base::openmode = ios_base::in | ios_base::out); strstream(char*, int, ios_base::openmode = ios_base::in | ios_base::out);
virtual ~strstream(); virtual ~strstream();
strstreambuf* rdbuf() const; _GLIBCXX_CONST strstreambuf* rdbuf() const throw ();
void freeze(bool = true); void freeze(bool = true) throw ();
int pcount() const; _GLIBCXX_PURE int pcount() const throw ();
char* str(); char* str() throw ();
private: private:
strstreambuf _M_buf; strstreambuf _M_buf;
......
...@@ -326,4 +326,12 @@ _GLIBCXX_END_NAMESPACE ...@@ -326,4 +326,12 @@ _GLIBCXX_END_NAMESPACE
# define _GLIBCXX_NORETURN __attribute__ ((__noreturn__)) # define _GLIBCXX_NORETURN __attribute__ ((__noreturn__))
#endif #endif
#ifndef _GLIBCXX_NOTHROW
# ifdef __cplusplus
# define _GLIBCXX_NOTHROW throw()
# else
# define _GLIBCXX_NOTHROW __attribute__((nothrow))
# endif
#endif
// End of prewritten config; the discovered settings follow. // End of prewritten config; the discovered settings follow.
...@@ -60,8 +60,8 @@ namespace std ...@@ -60,8 +60,8 @@ namespace std
struct error_code; struct error_code;
template<> template<>
size_t _GLIBCXX_PURE size_t
hash<error_code>::operator()(error_code) const; hash<error_code>::operator()(error_code) const throw ();
} }
#endif // _FUNCTIONAL_HASH_H #endif // _FUNCTIONAL_HASH_H
......
...@@ -497,7 +497,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -497,7 +497,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
_M_call_callbacks(event __ev) throw(); _M_call_callbacks(event __ev) throw();
void void
_M_dispose_callbacks(void); _M_dispose_callbacks(void) throw();
// 27.4.2.5 Members for iword/pword storage // 27.4.2.5 Members for iword/pword storage
struct _Words struct _Words
...@@ -526,7 +526,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -526,7 +526,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
locale _M_ios_locale; locale _M_ios_locale;
void void
_M_init(); _M_init() throw ();
public: public:
...@@ -685,7 +685,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -685,7 +685,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
* with imbue_event. * with imbue_event.
*/ */
locale locale
imbue(const locale& __loc); imbue(const locale& __loc) throw ();
/** /**
* @brief Locale access * @brief Locale access
...@@ -782,7 +782,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -782,7 +782,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
virtual ~ios_base(); virtual ~ios_base();
protected: protected:
ios_base(); ios_base() throw ();
// _GLIBCXX_RESOLVE_LIB_DEFECTS // _GLIBCXX_RESOLVE_LIB_DEFECTS
// 50. Copy constructor and assignment operator of ios_base // 50. Copy constructor and assignment operator of ios_base
......
...@@ -312,7 +312,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -312,7 +312,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
_S_initialize(); _S_initialize();
static void static void
_S_initialize_once(); _S_initialize_once() throw ();
static category static category
_S_normalize_category(category); _S_normalize_category(category);
...@@ -376,7 +376,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -376,7 +376,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
__c_locale __old = 0); __c_locale __old = 0);
static __c_locale static __c_locale
_S_clone_c_locale(__c_locale& __cloc); _S_clone_c_locale(__c_locale& __cloc) throw ();
static void static void
_S_destroy_c_locale(__c_locale& __cloc); _S_destroy_c_locale(__c_locale& __cloc);
...@@ -386,8 +386,8 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -386,8 +386,8 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
static __c_locale static __c_locale
_S_get_c_locale(); _S_get_c_locale();
static const char* _GLIBCXX_CONST static const char*
_S_get_c_name(); _S_get_c_name() throw ();
private: private:
void void
...@@ -457,7 +457,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -457,7 +457,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
id() { } id() { }
size_t size_t
_M_id() const; _M_id() const throw ();
}; };
...@@ -697,10 +697,10 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -697,10 +697,10 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
// Used to abstract out _CharT bits in virtual member functions, below. // Used to abstract out _CharT bits in virtual member functions, below.
int int
_M_compare(const _CharT*, const _CharT*) const; _M_compare(const _CharT*, const _CharT*) const throw ();
size_t size_t
_M_transform(_CharT*, const _CharT*, size_t) const; _M_transform(_CharT*, const _CharT*, size_t) const throw ();
protected: protected:
/// Destructor. /// Destructor.
...@@ -759,20 +759,20 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -759,20 +759,20 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
// Specializations. // Specializations.
template<> template<>
int int
collate<char>::_M_compare(const char*, const char*) const; collate<char>::_M_compare(const char*, const char*) const throw ();
template<> template<>
size_t size_t
collate<char>::_M_transform(char*, const char*, size_t) const; collate<char>::_M_transform(char*, const char*, size_t) const throw ();
#ifdef _GLIBCXX_USE_WCHAR_T #ifdef _GLIBCXX_USE_WCHAR_T
template<> template<>
int int
collate<wchar_t>::_M_compare(const wchar_t*, const wchar_t*) const; collate<wchar_t>::_M_compare(const wchar_t*, const wchar_t*) const throw ();
template<> template<>
size_t size_t
collate<wchar_t>::_M_transform(wchar_t*, const wchar_t*, size_t) const; collate<wchar_t>::_M_transform(wchar_t*, const wchar_t*, size_t) const throw ();
#endif #endif
/// class collate_byname [22.2.4.2]. /// class collate_byname [22.2.4.2].
......
...@@ -119,13 +119,13 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -119,13 +119,13 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
// Generic version does nothing. // Generic version does nothing.
template<typename _CharT> template<typename _CharT>
int int
collate<_CharT>::_M_compare(const _CharT*, const _CharT*) const collate<_CharT>::_M_compare(const _CharT*, const _CharT*) const throw ()
{ return 0; } { return 0; }
// Generic version does nothing. // Generic version does nothing.
template<typename _CharT> template<typename _CharT>
size_t size_t
collate<_CharT>::_M_transform(_CharT*, const _CharT*, size_t) const collate<_CharT>::_M_transform(_CharT*, const _CharT*, size_t) const throw ()
{ return 0; } { return 0; }
template<typename _CharT> template<typename _CharT>
......
...@@ -70,17 +70,17 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -70,17 +70,17 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
template<> template<>
void void
__convert_to_v(const char*, float&, ios_base::iostate&, __convert_to_v(const char*, float&, ios_base::iostate&,
const __c_locale&); const __c_locale&) throw ();
template<> template<>
void void
__convert_to_v(const char*, double&, ios_base::iostate&, __convert_to_v(const char*, double&, ios_base::iostate&,
const __c_locale&); const __c_locale&) throw ();
template<> template<>
void void
__convert_to_v(const char*, long double&, ios_base::iostate&, __convert_to_v(const char*, long double&, ios_base::iostate&,
const __c_locale&); const __c_locale&) throw ();
// NB: __pad is a struct, rather than a function, so it can be // NB: __pad is a struct, rather than a function, so it can be
// partially-specialized. // partially-specialized.
...@@ -1220,7 +1220,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -1220,7 +1220,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
protected: protected:
__wmask_type __wmask_type
_M_convert_to_wmask(const mask __m) const; _M_convert_to_wmask(const mask __m) const throw ();
/// Destructor /// Destructor
virtual virtual
...@@ -1458,7 +1458,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -1458,7 +1458,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
// For use at construction time only. // For use at construction time only.
void void
_M_initialize_ctype(); _M_initialize_ctype() throw ();
}; };
#endif //_GLIBCXX_USE_WCHAR_T #endif //_GLIBCXX_USE_WCHAR_T
...@@ -1558,7 +1558,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -1558,7 +1558,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
// num_put // num_put
// Construct and return valid scanf format for floating point types. // Construct and return valid scanf format for floating point types.
static void static void
_S_format_float(const ios_base& __io, char* __fptr, char __mod); _S_format_float(const ios_base& __io, char* __fptr, char __mod) throw ();
}; };
template<typename _CharT> template<typename _CharT>
......
...@@ -118,9 +118,9 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -118,9 +118,9 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
// 1,222,444 == __grouping_tmp of "\1\3\3" // 1,222,444 == __grouping_tmp of "\1\3\3"
// __grouping is parsed R to L // __grouping is parsed R to L
// 1,222,444 == __grouping of "\3" == "\3\3\3" // 1,222,444 == __grouping of "\3" == "\3\3\3"
bool _GLIBCXX_PURE bool
__verify_grouping(const char* __grouping, size_t __grouping_size, __verify_grouping(const char* __grouping, size_t __grouping_size,
const string& __grouping_tmp); const string& __grouping_tmp) throw ();
_GLIBCXX_BEGIN_LDBL_NAMESPACE _GLIBCXX_BEGIN_LDBL_NAMESPACE
......
...@@ -211,7 +211,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -211,7 +211,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
// value of strftime/wcsftime. // value of strftime/wcsftime.
void void
_M_put(_CharT* __s, size_t __maxlen, const _CharT* __format, _M_put(_CharT* __s, size_t __maxlen, const _CharT* __format,
const tm* __tm) const; const tm* __tm) const throw ();
void void
_M_date_formats(const _CharT** __date) const _M_date_formats(const _CharT** __date) const
...@@ -325,7 +325,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -325,7 +325,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
template<> template<>
void void
__timepunct<char>::_M_put(char*, size_t, const char*, const tm*) const; __timepunct<char>::_M_put(char*, size_t, const char*, const tm*) const throw ();
#ifdef _GLIBCXX_USE_WCHAR_T #ifdef _GLIBCXX_USE_WCHAR_T
template<> template<>
...@@ -335,7 +335,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -335,7 +335,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
template<> template<>
void void
__timepunct<wchar_t>::_M_put(wchar_t*, size_t, const wchar_t*, __timepunct<wchar_t>::_M_put(wchar_t*, size_t, const wchar_t*,
const tm*) const; const tm*) const throw ();
#endif #endif
_GLIBCXX_END_NAMESPACE _GLIBCXX_END_NAMESPACE
...@@ -844,8 +844,8 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -844,8 +844,8 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
// Construct and return valid pattern consisting of some combination of: // Construct and return valid pattern consisting of some combination of:
// space none symbol sign value // space none symbol sign value
static pattern _GLIBCXX_CONST static pattern
_S_construct_pattern(char __precedes, char __space, char __posn); _S_construct_pattern(char __precedes, char __space, char __posn) throw ();
}; };
template<typename _CharT, bool _Intl> template<typename _CharT, bool _Intl>
......
...@@ -74,20 +74,20 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D) ...@@ -74,20 +74,20 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
_List_node_base* _M_prev; _List_node_base* _M_prev;
static void static void
swap(_List_node_base& __x, _List_node_base& __y); swap(_List_node_base& __x, _List_node_base& __y) throw ();
void void
transfer(_List_node_base * const __first, transfer(_List_node_base * const __first,
_List_node_base * const __last); _List_node_base * const __last) throw ();
void void
reverse(); reverse() throw ();
void void
hook(_List_node_base * const __position); hook(_List_node_base * const __position) throw ();
void void
unhook(); unhook() throw ();
}; };
/// An actual node in the %list. /// An actual node in the %list.
......
...@@ -121,21 +121,21 @@ _GLIBCXX_BEGIN_EXTERN_C ...@@ -121,21 +121,21 @@ _GLIBCXX_BEGIN_EXTERN_C
// Accessor functions for base atomic_flag type. // Accessor functions for base atomic_flag type.
bool bool
atomic_flag_test_and_set_explicit(volatile __atomic_flag_base*, memory_order) throw (); atomic_flag_test_and_set_explicit(volatile __atomic_flag_base*, memory_order) _GLIBCXX_NOTHROW;
inline bool inline bool
atomic_flag_test_and_set(volatile __atomic_flag_base* __a) atomic_flag_test_and_set(volatile __atomic_flag_base* __a)
{ return atomic_flag_test_and_set_explicit(__a, memory_order_seq_cst); } { return atomic_flag_test_and_set_explicit(__a, memory_order_seq_cst); }
void void
atomic_flag_clear_explicit(volatile __atomic_flag_base*, memory_order) throw (); atomic_flag_clear_explicit(volatile __atomic_flag_base*, memory_order) _GLIBCXX_NOTHROW;
inline void inline void
atomic_flag_clear(volatile __atomic_flag_base* __a) atomic_flag_clear(volatile __atomic_flag_base* __a)
{ atomic_flag_clear_explicit(__a, memory_order_seq_cst); } { atomic_flag_clear_explicit(__a, memory_order_seq_cst); }
void void
__atomic_flag_wait_explicit(volatile __atomic_flag_base*, memory_order) throw (); __atomic_flag_wait_explicit(volatile __atomic_flag_base*, memory_order) _GLIBCXX_NOTHROW;
_GLIBCXX_CONST volatile __atomic_flag_base* _GLIBCXX_CONST volatile __atomic_flag_base*
__atomic_flag_for_address(const volatile void* __z) throw (); __atomic_flag_for_address(const volatile void* __z) throw ();
......
...@@ -614,7 +614,7 @@ namespace std ...@@ -614,7 +614,7 @@ namespace std
static const bool is_monotonic = false; static const bool is_monotonic = false;
static time_point static time_point
now(); now() throw ();
// Map to C API // Map to C API
static std::time_t static std::time_t
......
...@@ -60,8 +60,8 @@ namespace std ...@@ -60,8 +60,8 @@ namespace std
public: public:
typedef __native_type* native_handle_type; typedef __native_type* native_handle_type;
condition_variable(); condition_variable() throw ();
~condition_variable(); ~condition_variable() throw ();
condition_variable(const condition_variable&) = delete; condition_variable(const condition_variable&) = delete;
condition_variable& operator=(const condition_variable&) = delete; condition_variable& operator=(const condition_variable&) = delete;
...@@ -168,8 +168,8 @@ namespace std ...@@ -168,8 +168,8 @@ namespace std
public: public:
typedef __native_type* native_handle_type; typedef __native_type* native_handle_type;
condition_variable_any(); condition_variable_any() throw ();
~condition_variable_any(); ~condition_variable_any() throw ();
condition_variable_any(const condition_variable_any&) = delete; condition_variable_any(const condition_variable_any&) = delete;
condition_variable_any& operator=(const condition_variable_any&) = delete; condition_variable_any& operator=(const condition_variable_any&) = delete;
......
...@@ -395,7 +395,7 @@ namespace std ...@@ -395,7 +395,7 @@ namespace std
{ {
public: public:
virtual const char* virtual const char*
what() const throw(); _GLIBCXX_CONST what() const throw();
}; };
/// @brief Scoped lock idiom. /// @brief Scoped lock idiom.
......
...@@ -105,8 +105,8 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -105,8 +105,8 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
}; };
// DR 890. // DR 890.
const error_category& system_category(); _GLIBCXX_CONST const error_category& system_category() throw ();
const error_category& generic_category(); _GLIBCXX_CONST const error_category& generic_category() throw ();
/// error_code /// error_code
// Implementation-specific error identification // Implementation-specific error identification
......
...@@ -40,7 +40,7 @@ namespace std ...@@ -40,7 +40,7 @@ namespace std
const bool system_clock::is_monotonic; const bool system_clock::is_monotonic;
system_clock::time_point system_clock::time_point
system_clock::now() system_clock::now() throw ()
{ {
#ifdef _GLIBCXX_USE_CLOCK_REALTIME #ifdef _GLIBCXX_USE_CLOCK_REALTIME
timespec tp; timespec tp;
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
namespace std namespace std
{ {
condition_variable::condition_variable() condition_variable::condition_variable() throw ()
{ {
#ifdef __GTHREAD_COND_INIT #ifdef __GTHREAD_COND_INIT
__native_type __tmp = __GTHREAD_COND_INIT; __native_type __tmp = __GTHREAD_COND_INIT;
...@@ -41,7 +41,7 @@ namespace std ...@@ -41,7 +41,7 @@ namespace std
#endif #endif
} }
condition_variable::~condition_variable() condition_variable::~condition_variable() throw ()
{ {
// XXX no thread blocked // XXX no thread blocked
/* int __e = */ __gthread_cond_destroy(&_M_cond); /* int __e = */ __gthread_cond_destroy(&_M_cond);
...@@ -79,7 +79,7 @@ namespace std ...@@ -79,7 +79,7 @@ namespace std
__throw_system_error(__e); __throw_system_error(__e);
} }
condition_variable_any::condition_variable_any() condition_variable_any::condition_variable_any() throw ()
{ {
#ifdef __GTHREAD_COND_INIT #ifdef __GTHREAD_COND_INIT
__native_type __tmp = __GTHREAD_COND_INIT; __native_type __tmp = __GTHREAD_COND_INIT;
...@@ -92,7 +92,7 @@ namespace std ...@@ -92,7 +92,7 @@ namespace std
#endif #endif
} }
condition_variable_any::~condition_variable_any() condition_variable_any::~condition_variable_any() throw ()
{ {
__gthread_cond_destroy(&_M_cond); __gthread_cond_destroy(&_M_cond);
} }
......
...@@ -44,7 +44,7 @@ _GLIBCXX_BEGIN_NAMESPACE_TR1 ...@@ -44,7 +44,7 @@ _GLIBCXX_BEGIN_NAMESPACE_TR1
// 10 bytes -> 12 bytes) and resort to frexp. // 10 bytes -> 12 bytes) and resort to frexp.
template<> template<>
size_t size_t
hash<long double>::operator()(long double __val) const hash<long double>::operator()(long double __val) const throw ()
{ {
size_t __result = 0; size_t __result = 0;
...@@ -72,18 +72,18 @@ _GLIBCXX_BEGIN_NAMESPACE_TR1 ...@@ -72,18 +72,18 @@ _GLIBCXX_BEGIN_NAMESPACE_TR1
#ifndef _GLIBCXX_LONG_DOUBLE_COMPAT_IMPL #ifndef _GLIBCXX_LONG_DOUBLE_COMPAT_IMPL
template<> template<>
size_t size_t
hash<string>::operator()(string __s) const hash<string>::operator()(string __s) const throw ()
{ return _Fnv_hash<>::hash(__s.data(), __s.length()); } { return _Fnv_hash<>::hash(__s.data(), __s.length()); }
template<> template<>
size_t size_t
hash<const string&>::operator()(const string& __s) const hash<const string&>::operator()(const string& __s) const throw ()
{ return _Fnv_hash<>::hash(__s.data(), __s.length()); } { return _Fnv_hash<>::hash(__s.data(), __s.length()); }
#ifdef _GLIBCXX_USE_WCHAR_T #ifdef _GLIBCXX_USE_WCHAR_T
template<> template<>
size_t size_t
hash<wstring>::operator()(wstring __s) const hash<wstring>::operator()(wstring __s) const throw ()
{ {
const char* __p = reinterpret_cast<const char*>(__s.data()); const char* __p = reinterpret_cast<const char*>(__s.data());
return _Fnv_hash<>::hash(__p, __s.length() * sizeof(wchar_t)); return _Fnv_hash<>::hash(__p, __s.length() * sizeof(wchar_t));
...@@ -91,7 +91,7 @@ _GLIBCXX_BEGIN_NAMESPACE_TR1 ...@@ -91,7 +91,7 @@ _GLIBCXX_BEGIN_NAMESPACE_TR1
template<> template<>
size_t size_t
hash<const wstring&>::operator()(const wstring& __s) const hash<const wstring&>::operator()(const wstring& __s) const throw ()
{ {
const char* __p = reinterpret_cast<const char*>(__s.data()); const char* __p = reinterpret_cast<const char*>(__s.data());
return _Fnv_hash<>::hash(__p, __s.length() * sizeof(wchar_t)); return _Fnv_hash<>::hash(__p, __s.length() * sizeof(wchar_t));
......
...@@ -78,33 +78,33 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -78,33 +78,33 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
} }
} }
strstreambuf::strstreambuf(char* get, streamsize n, char* put) strstreambuf::strstreambuf(char* get, streamsize n, char* put) throw ()
: _Base(), _M_alloc_fun(0), _M_free_fun(0), _M_dynamic(false), : _Base(), _M_alloc_fun(0), _M_free_fun(0), _M_dynamic(false),
_M_frozen(false), _M_constant(false) _M_frozen(false), _M_constant(false)
{ _M_setup(get, put, n); } { _M_setup(get, put, n); }
strstreambuf::strstreambuf(signed char* get, streamsize n, signed char* put) strstreambuf::strstreambuf(signed char* get, streamsize n, signed char* put) throw ()
: _Base(), _M_alloc_fun(0), _M_free_fun(0), _M_dynamic(false), : _Base(), _M_alloc_fun(0), _M_free_fun(0), _M_dynamic(false),
_M_frozen(false), _M_constant(false) _M_frozen(false), _M_constant(false)
{ _M_setup(reinterpret_cast<char*>(get), reinterpret_cast<char*>(put), n); } { _M_setup(reinterpret_cast<char*>(get), reinterpret_cast<char*>(put), n); }
strstreambuf::strstreambuf(unsigned char* get, streamsize n, strstreambuf::strstreambuf(unsigned char* get, streamsize n,
unsigned char* put) unsigned char* put) throw ()
: _Base(), _M_alloc_fun(0), _M_free_fun(0), _M_dynamic(false), : _Base(), _M_alloc_fun(0), _M_free_fun(0), _M_dynamic(false),
_M_frozen(false), _M_constant(false) _M_frozen(false), _M_constant(false)
{ _M_setup(reinterpret_cast<char*>(get), reinterpret_cast<char*>(put), n); } { _M_setup(reinterpret_cast<char*>(get), reinterpret_cast<char*>(put), n); }
strstreambuf::strstreambuf(const char* get, streamsize n) strstreambuf::strstreambuf(const char* get, streamsize n) throw ()
: _Base(), _M_alloc_fun(0), _M_free_fun(0), _M_dynamic(false), : _Base(), _M_alloc_fun(0), _M_free_fun(0), _M_dynamic(false),
_M_frozen(false), _M_constant(true) _M_frozen(false), _M_constant(true)
{ _M_setup(const_cast<char*>(get), 0, n); } { _M_setup(const_cast<char*>(get), 0, n); }
strstreambuf::strstreambuf(const signed char* get, streamsize n) strstreambuf::strstreambuf(const signed char* get, streamsize n) throw ()
: _Base(), _M_alloc_fun(0), _M_free_fun(0), _M_dynamic(false), : _Base(), _M_alloc_fun(0), _M_free_fun(0), _M_dynamic(false),
_M_frozen(false), _M_constant(true) _M_frozen(false), _M_constant(true)
{ _M_setup(reinterpret_cast<char*>(const_cast<signed char*>(get)), 0, n); } { _M_setup(reinterpret_cast<char*>(const_cast<signed char*>(get)), 0, n); }
strstreambuf::strstreambuf(const unsigned char* get, streamsize n) strstreambuf::strstreambuf(const unsigned char* get, streamsize n) throw ()
: _Base(), _M_alloc_fun(0), _M_free_fun(0), _M_dynamic(false), : _Base(), _M_alloc_fun(0), _M_free_fun(0), _M_dynamic(false),
_M_frozen(false), _M_constant(true) _M_frozen(false), _M_constant(true)
{ _M_setup(reinterpret_cast<char*>(const_cast<unsigned char*>(get)), 0, n); } { _M_setup(reinterpret_cast<char*>(const_cast<unsigned char*>(get)), 0, n); }
...@@ -116,21 +116,21 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -116,21 +116,21 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
} }
void void
strstreambuf::freeze(bool frozenflag) strstreambuf::freeze(bool frozenflag) throw ()
{ {
if (_M_dynamic) if (_M_dynamic)
_M_frozen = frozenflag; _M_frozen = frozenflag;
} }
char* char*
strstreambuf::str() strstreambuf::str() throw ()
{ {
freeze(true); freeze(true);
return eback(); return eback();
} }
int int
strstreambuf::pcount() const strstreambuf::pcount() const throw ()
{ return pptr() ? pptr() - pbase() : 0; } { return pptr() ? pptr() - pbase() : 0; }
strstreambuf::int_type strstreambuf::int_type
...@@ -315,7 +315,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -315,7 +315,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
} }
void void
strstreambuf::_M_setup(char* get, char* put, streamsize n) strstreambuf::_M_setup(char* get, char* put, streamsize n) throw ()
{ {
if (get) if (get)
{ {
...@@ -350,11 +350,11 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -350,11 +350,11 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
istrstream::~istrstream() { } istrstream::~istrstream() { }
strstreambuf* strstreambuf*
istrstream::rdbuf() const istrstream::rdbuf() const throw ()
{ return const_cast<strstreambuf*>(&_M_buf); } { return const_cast<strstreambuf*>(&_M_buf); }
char* char*
istrstream::str() istrstream::str() throw ()
{ return _M_buf.str(); } { return _M_buf.str(); }
ostrstream::ostrstream() ostrstream::ostrstream()
...@@ -369,19 +369,19 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -369,19 +369,19 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
ostrstream::~ostrstream() {} ostrstream::~ostrstream() {}
strstreambuf* strstreambuf*
ostrstream::rdbuf() const ostrstream::rdbuf() const throw ()
{ return const_cast<strstreambuf*>(&_M_buf); } { return const_cast<strstreambuf*>(&_M_buf); }
void void
ostrstream::freeze(bool freezeflag) ostrstream::freeze(bool freezeflag) throw ()
{ _M_buf.freeze(freezeflag); } { _M_buf.freeze(freezeflag); }
char* char*
ostrstream::str() ostrstream::str() throw ()
{ return _M_buf.str(); } { return _M_buf.str(); }
int int
ostrstream::pcount() const ostrstream::pcount() const throw ()
{ return _M_buf.pcount(); } { return _M_buf.pcount(); }
strstream::strstream() strstream::strstream()
...@@ -396,19 +396,19 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -396,19 +396,19 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
strstream::~strstream() { } strstream::~strstream() { }
strstreambuf* strstreambuf*
strstream::rdbuf() const strstream::rdbuf() const throw ()
{ return const_cast<strstreambuf*>(&_M_buf); } { return const_cast<strstreambuf*>(&_M_buf); }
void void
strstream::freeze(bool freezeflag) strstream::freeze(bool freezeflag) throw ()
{ _M_buf.freeze(freezeflag); } { _M_buf.freeze(freezeflag); }
int int
strstream::pcount() const strstream::pcount() const throw ()
{ return _M_buf.pcount(); } { return _M_buf.pcount(); }
char* char*
strstream::str() strstream::str() throw ()
{ return _M_buf.str(); } { return _M_buf.str(); }
_GLIBCXX_END_NAMESPACE _GLIBCXX_END_NAMESPACE
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment