unary_function
, as appropriate. More...binary_function
, as appropriate. More...mem_fn
for const member function pointers. More...mem_fn
for const volatile member function pointers. More...mem_fn
for volatile member function pointers. More...mem_fn
for member function pointers. More...Functor
; use it. More...new
. More...
They are required by default to cooperate with the global C library's FILE
streams, and to be available during program startup and termination. For more information, see the HOWTO linked to above.
typedef integral_constant<bool, false> std::false_type |
typedef void(*) std::new_handler() |
typedef long long std::streamoff |
Type used by fpos, char_traits<char>, and char_traits<wchar_t>.
In clauses 21.1.3.1 and 27.4.1 streamoff is described as an implementation defined type. Note: In versions of GCC up to and including GCC 3.3, streamoff was typedef long.
Definition at line 73 of file postypes.h.
typedef fpos<mbstate_t> std::streampos |
typedef ptrdiff_t std::streamsize |
typedef void(*) std::terminate_handler() |
typedef integral_constant<bool, true> std::true_type |
typedef void(*) std::unexpected_handler() |
typedef fpos<mbstate_t> std::wstreampos |
anonymous enum |
Definition at line 1819 of file stl_algo.h.
Describes the denormalization for floating-point types.
These values represent the presence or absence of a variable number of exponent bits. This type is used in the std::numeric_limits class.
Describes the rounding style for floating-point types.
This is used in the std::numeric_limits class.
std::complex<_Tp> std::__complex_acos | ( | const std::complex< _Tp > & | __z | ) | [inline] |
acos(__z) [8.1.2].
Definition at line 59 of file impl/complex.
References _GLIBCXX_TR1, and asin().
Referenced by acos().
std::complex<_Tp> std::__complex_acosh | ( | const std::complex< _Tp > & | __z | ) |
std::complex<_Tp> std::__complex_asin | ( | const std::complex< _Tp > & | __z | ) | [inline] |
asin(__z) [8.1.3].
Definition at line 95 of file impl/complex.
References _GLIBCXX_TR1, and asinh().
Referenced by asin().
std::complex<_Tp> std::__complex_asinh | ( | const std::complex< _Tp > & | __z | ) |
std::complex<_Tp> std::__complex_atan | ( | const std::complex< _Tp > & | __z | ) |
atan(__z) [8.1.4].
Definition at line 131 of file impl/complex.
References atan2(), and log().
Referenced by atan().
std::complex<_Tp> std::__complex_atanh | ( | const std::complex< _Tp > & | __z | ) |
atanh(__z) [8.1.7].
Definition at line 253 of file impl/complex.
References atan2(), and log().
Referenced by atanh().
size_t std::__deque_buf_size | ( | size_t | __size | ) | [inline] |
This function controls the size of memory nodes.
size | The size of an element. |
Definition at line 82 of file stl_deque.h.
Referenced by std::_Deque_base< _Tp, _Alloc >::_M_allocate_node(), std::_Deque_base< _Tp, _Alloc >::_M_deallocate_node(), std::_Deque_base< _Tp, _Alloc >::_M_initialize_map(), std::deque< _Tp, _Alloc >::_S_buffer_size(), and std::_Deque_iterator< _Tp, _Ref, _Ptr >::_S_buffer_size().
void std::__final_insertion_sort | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __last, | |||
_Compare | __comp | |||
) |
This is a helper function for the sort routine.
Definition at line 1839 of file stl_algo.h.
References __insertion_sort(), and __unguarded_insertion_sort().
void std::__final_insertion_sort | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __last | |||
) |
This is a helper function for the sort routine.
Definition at line 1824 of file stl_algo.h.
References __insertion_sort(), and __unguarded_insertion_sort().
Referenced by sort().
_RandomAccessIterator std::__find | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __last, | |||
const _Tp & | __val, | |||
random_access_iterator_tag | ||||
) |
_InputIterator std::__find | ( | _InputIterator | __first, | |
_InputIterator | __last, | |||
const _Tp & | __val, | |||
input_iterator_tag | ||||
) | [inline] |
This is an overload used by find() for the Input Iterator case.
Definition at line 148 of file stl_algo.h.
Referenced by find().
_RandomAccessIterator std::__find_if | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __last, | |||
_Predicate | __pred, | |||
random_access_iterator_tag | ||||
) |
_InputIterator std::__find_if | ( | _InputIterator | __first, | |
_InputIterator | __last, | |||
_Predicate | __pred, | |||
input_iterator_tag | ||||
) | [inline] |
This is an overload used by find_if() for the Input Iterator case.
Definition at line 159 of file stl_algo.h.
Referenced by find_if().
_EuclideanRingElement std::__gcd | ( | _EuclideanRingElement | __m, | |
_EuclideanRingElement | __n | |||
) |
This is a helper function for the rotate algorithm specialized on RAIs. It returns the greatest common divisor of two integer values.
Definition at line 1159 of file stl_algo.h.
Referenced by __rotate().
void std::__heap_select | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __middle, | |||
_RandomAccessIterator | __last, | |||
_Compare | __comp | |||
) |
This is a helper function for the sort routines.
Definition at line 1566 of file stl_algo.h.
References __pop_heap().
void std::__heap_select | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __middle, | |||
_RandomAccessIterator | __last | |||
) |
This is a helper function for the sort routines.
Definition at line 1553 of file stl_algo.h.
References __pop_heap().
Referenced by __introselect(), and partial_sort().
_ForwardIterator std::__inplace_stable_partition | ( | _ForwardIterator | __first, | |
_ForwardIterator | __last, | |||
_Predicate | __pred, | |||
_Distance | __len | |||
) |
This is a helper function...
Definition at line 1431 of file stl_algo.h.
References advance(), and distance().
Referenced by stable_partition().
void std::__inplace_stable_sort | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __last, | |||
_Compare | __comp | |||
) |
This is a helper function for the stable sorting routines.
Definition at line 3073 of file stl_algo.h.
References __inplace_stable_sort(), __insertion_sort(), and __merge_without_buffer().
void std::__inplace_stable_sort | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __last | |||
) |
This is a helper function for the stable sorting routines.
Definition at line 3054 of file stl_algo.h.
References __insertion_sort(), and __merge_without_buffer().
Referenced by __inplace_stable_sort(), and stable_sort().
void std::__insertion_sort | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __last, | |||
_Compare | __comp | |||
) |
This is a helper function for the sort routine.
Definition at line 1770 of file stl_algo.h.
References __unguarded_linear_insert().
void std::__insertion_sort | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __last | |||
) |
This is a helper function for the sort routine.
Definition at line 1747 of file stl_algo.h.
References __unguarded_linear_insert().
Referenced by __chunk_insertion_sort(), __final_insertion_sort(), __inplace_stable_sort(), and __introselect().
void std::__introsort_loop | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __last, | |||
_Size | __depth_limit, | |||
_Compare | __comp | |||
) |
This is a helper function for the sort routine.
Definition at line 1928 of file stl_algo.h.
References __introsort_loop(), __median(), and __unguarded_partition().
void std::__introsort_loop | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __last, | |||
_Size | __depth_limit | |||
) |
This is a helper function for the sort routine.
Definition at line 1896 of file stl_algo.h.
References __median(), and __unguarded_partition().
Referenced by __introsort_loop(), and sort().
__gnu_cxx::__enable_if< (is_member_pointer< _Functor >::value &&!is_function< _Functor >::value &&!is_function< typename remove_pointer< _Functor >::type >::value), typename result_of< _Functor(_Args...)>::type >::__type std::__invoke | ( | _Functor & | __f, | |
_Args &... | __args | |||
) | [inline] |
Invoke a function object, which may be either a member pointer or a function object. The first parameter will tell which.
Definition at line 270 of file tr1_impl/functional.
iterator_traits<_Iter>::iterator_category std::__iterator_category | ( | const _Iter & | ) | [inline] |
This function is not a part of the C++ standard but is syntactic sugar for internal library use only.
Definition at line 166 of file stl_iterator_base_types.h.
Referenced by __gnu_cxx::__uninitialized_copy_n(), std::vector< bool, _Alloc >::_M_assign_dispatch(), std::vector< bool, _Alloc >::_M_initialize_dispatch(), std::vector< bool, _Alloc >::_M_insert_dispatch(), advance(), __gnu_cxx::copy_n(), distance(), __gnu_cxx::distance(), find(), find_end(), find_if(), __gnu_cxx::hashtable< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >::insert_equal(), __gnu_cxx::hashtable< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >::insert_unique(), partition(), reverse(), search_n(), __gnu_cxx::uninitialized_copy_n(), and unique_copy().
_Size std::__lg | ( | _Size | __n | ) | [inline] |
This is a helper function for the sort routines. Precondition: __n > 0.
Definition at line 1961 of file stl_algo.h.
Referenced by std::tr1::__detail::__log_gamma_bernoulli(), nth_element(), and sort().
void std::__merge_adaptive | ( | _BidirectionalIterator | __first, | |
_BidirectionalIterator | __middle, | |||
_BidirectionalIterator | __last, | |||
_Distance | __len1, | |||
_Distance | __len2, | |||
_Pointer | __buffer, | |||
_Distance | __buffer_size, | |||
_Compare | __comp | |||
) |
This is a helper function for the merge routines.
Definition at line 2613 of file stl_algo.h.
References __merge_adaptive(), __merge_backward(), __rotate_adaptive(), advance(), and distance().
void std::__merge_adaptive | ( | _BidirectionalIterator | __first, | |
_BidirectionalIterator | __middle, | |||
_BidirectionalIterator | __last, | |||
_Distance | __len1, | |||
_Distance | __len2, | |||
_Pointer | __buffer, | |||
_Distance | __buffer_size | |||
) |
This is a helper function for the merge routines.
Definition at line 2557 of file stl_algo.h.
References __merge_backward(), __rotate_adaptive(), advance(), and distance().
Referenced by __merge_adaptive(), __stable_sort_adaptive(), and inplace_merge().
_BidirectionalIterator3 std::__merge_backward | ( | _BidirectionalIterator1 | __first1, | |
_BidirectionalIterator1 | __last1, | |||
_BidirectionalIterator2 | __first2, | |||
_BidirectionalIterator2 | __last2, | |||
_BidirectionalIterator3 | __result, | |||
_Compare | __comp | |||
) |
_BidirectionalIterator3 std::__merge_backward | ( | _BidirectionalIterator1 | __first1, | |
_BidirectionalIterator1 | __last1, | |||
_BidirectionalIterator2 | __first2, | |||
_BidirectionalIterator2 | __last2, | |||
_BidirectionalIterator3 | __result | |||
) |
This is a helper function for the merge routines.
Definition at line 2454 of file stl_algo.h.
Referenced by __merge_adaptive().
void std::__merge_without_buffer | ( | _BidirectionalIterator | __first, | |
_BidirectionalIterator | __middle, | |||
_BidirectionalIterator | __last, | |||
_Distance | __len1, | |||
_Distance | __len2, | |||
_Compare | __comp | |||
) |
This is a helper function for the merge routines.
Definition at line 2714 of file stl_algo.h.
References __merge_without_buffer(), advance(), and distance().
void std::__merge_without_buffer | ( | _BidirectionalIterator | __first, | |
_BidirectionalIterator | __middle, | |||
_BidirectionalIterator | __last, | |||
_Distance | __len1, | |||
_Distance | __len2 | |||
) |
This is a helper function for the merge routines.
Definition at line 2670 of file stl_algo.h.
References advance(), and distance().
Referenced by __inplace_stable_sort(), __merge_without_buffer(), and inplace_merge().
_BidirectionalIterator std::__partition | ( | _BidirectionalIterator | __first, | |
_BidirectionalIterator | __last, | |||
_Predicate | __pred, | |||
bidirectional_iterator_tag | ||||
) |
_ForwardIterator std::__partition | ( | _ForwardIterator | __first, | |
_ForwardIterator | __last, | |||
_Predicate | __pred, | |||
forward_iterator_tag | ||||
) |
void std::__reverse | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __last, | |||
random_access_iterator_tag | ||||
) |
This is an uglified reverse(_BidirectionalIterator, _BidirectionalIterator) overloaded for random access iterators.
Definition at line 1081 of file stl_algo.h.
void std::__reverse | ( | _BidirectionalIterator | __first, | |
_BidirectionalIterator | __last, | |||
bidirectional_iterator_tag | ||||
) |
This is an uglified reverse(_BidirectionalIterator, _BidirectionalIterator) overloaded for bidirectional iterators.
Definition at line 1061 of file stl_algo.h.
Referenced by __rotate(), and reverse().
void std::__rotate | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __middle, | |||
_RandomAccessIterator | __last, | |||
random_access_iterator_tag | ||||
) |
This is a helper function for the rotate algorithm.
Definition at line 1239 of file stl_algo.h.
References __gcd(), __glibcxx_function_requires, and _GLIBCXX_MOVE.
Referenced by __gnu_cxx::bitmap_allocator< _Tp >::_M_deallocate_single_object().
void std::__rotate | ( | _BidirectionalIterator | __first, | |
_BidirectionalIterator | __middle, | |||
_BidirectionalIterator | __last, | |||
bidirectional_iterator_tag | ||||
) |
This is a helper function for the rotate algorithm.
Definition at line 1209 of file stl_algo.h.
References __glibcxx_function_requires, and __reverse().
void std::__rotate | ( | _ForwardIterator | __first, | |
_ForwardIterator | __middle, | |||
_ForwardIterator | __last, | |||
forward_iterator_tag | ||||
) |
This is a helper function for the rotate algorithm.
Definition at line 1173 of file stl_algo.h.
Referenced by rotate().
_BidirectionalIterator1 std::__rotate_adaptive | ( | _BidirectionalIterator1 | __first, | |
_BidirectionalIterator1 | __middle, | |||
_BidirectionalIterator1 | __last, | |||
_Distance | __len1, | |||
_Distance | __len2, | |||
_BidirectionalIterator2 | __buffer, | |||
_Distance | __buffer_size | |||
) |
This is a helper function for the merge routines.
Definition at line 2525 of file stl_algo.h.
References advance(), and distance().
Referenced by __merge_adaptive().
_RandomAccessIter std::__search_n | ( | _RandomAccessIter | __first, | |
_RandomAccessIter | __last, | |||
_Integer | __count, | |||
const _Tp & | __val, | |||
_BinaryPredicate | __binary_pred, | |||
std::random_access_iterator_tag | ||||
) |
This is an uglified search_n(_ForwardIterator, _ForwardIterator, _Integer, const _Tp&, _BinaryPredicate) overloaded for random access iterators.
Definition at line 408 of file stl_algo.h.
_ForwardIterator std::__search_n | ( | _ForwardIterator | __first, | |
_ForwardIterator | __last, | |||
_Integer | __count, | |||
const _Tp & | __val, | |||
_BinaryPredicate | __binary_pred, | |||
std::forward_iterator_tag | ||||
) |
This is an uglified search_n(_ForwardIterator, _ForwardIterator, _Integer, const _Tp&, _BinaryPredicate) overloaded for forward iterators.
Definition at line 369 of file stl_algo.h.
_RandomAccessIter std::__search_n | ( | _RandomAccessIter | __first, | |
_RandomAccessIter | __last, | |||
_Integer | __count, | |||
const _Tp & | __val, | |||
std::random_access_iterator_tag | ||||
) |
This is an uglified search_n(_ForwardIterator, _ForwardIterator, _Integer, const _Tp&) overloaded for random access iterators.
Definition at line 315 of file stl_algo.h.
_ForwardIterator std::__search_n | ( | _ForwardIterator | __first, | |
_ForwardIterator | __last, | |||
_Integer | __count, | |||
const _Tp & | __val, | |||
std::forward_iterator_tag | ||||
) |
This is an uglified search_n(_ForwardIterator, _ForwardIterator, _Integer, const _Tp&) overloaded for forward iterators.
Definition at line 283 of file stl_algo.h.
Referenced by search_n(), and std::__parallel::search_n_switch().
_ForwardIterator std::__stable_partition_adaptive | ( | _ForwardIterator | __first, | |
_ForwardIterator | __last, | |||
_Predicate | __pred, | |||
_Distance | __len, | |||
_Pointer | __buffer, | |||
_Distance | __buffer_size | |||
) |
This is a helper function...
Definition at line 1456 of file stl_algo.h.
References advance(), and distance().
Referenced by stable_partition().
void std::__unguarded_insertion_sort | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __last, | |||
_Compare | __comp | |||
) | [inline] |
This is a helper function for the sort routine.
Definition at line 1805 of file stl_algo.h.
References __unguarded_linear_insert().
void std::__unguarded_insertion_sort | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __last | |||
) | [inline] |
This is a helper function for the sort routine.
Definition at line 1792 of file stl_algo.h.
References __unguarded_linear_insert().
Referenced by __final_insertion_sort().
void std::__unguarded_linear_insert | ( | _RandomAccessIterator | __last, | |
_Tp | __val, | |||
_Compare | __comp | |||
) |
void std::__unguarded_linear_insert | ( | _RandomAccessIterator | __last, | |
_Tp | __val | |||
) |
This is a helper function for the sort routine.
Definition at line 1714 of file stl_algo.h.
Referenced by __insertion_sort(), and __unguarded_insertion_sort().
_RandomAccessIterator std::__unguarded_partition | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __last, | |||
_Tp | __pivot, | |||
_Compare | __comp | |||
) |
_RandomAccessIterator std::__unguarded_partition | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __last, | |||
_Tp | __pivot | |||
) |
This is a helper function...
Definition at line 1855 of file stl_algo.h.
Referenced by __introselect(), and __introsort_loop().
_ForwardIterator std::__unique_copy | ( | _InputIterator | __first, | |
_InputIterator | __last, | |||
_ForwardIterator | __result, | |||
_BinaryPredicate | __binary_pred, | |||
input_iterator_tag | , | |||
forward_iterator_tag | ||||
) |
This is an uglified unique_copy(_InputIterator, _InputIterator, _OutputIterator, _BinaryPredicate) overloaded for input iterators and forward iterator as result.
Definition at line 1038 of file stl_algo.h.
References __glibcxx_function_requires.
_OutputIterator std::__unique_copy | ( | _InputIterator | __first, | |
_InputIterator | __last, | |||
_OutputIterator | __result, | |||
_BinaryPredicate | __binary_pred, | |||
input_iterator_tag | , | |||
output_iterator_tag | ||||
) |
This is an uglified unique_copy(_InputIterator, _InputIterator, _OutputIterator, _BinaryPredicate) overloaded for input iterators and output iterator as result.
Definition at line 1009 of file stl_algo.h.
References __glibcxx_function_requires.
_OutputIterator std::__unique_copy | ( | _ForwardIterator | __first, | |
_ForwardIterator | __last, | |||
_OutputIterator | __result, | |||
_BinaryPredicate | __binary_pred, | |||
forward_iterator_tag | , | |||
output_iterator_tag | ||||
) |
This is an uglified unique_copy(_InputIterator, _InputIterator, _OutputIterator, _BinaryPredicate) overloaded for forward iterators and output iterator as result.
Definition at line 980 of file stl_algo.h.
References __glibcxx_function_requires.
_ForwardIterator std::__unique_copy | ( | _InputIterator | __first, | |
_InputIterator | __last, | |||
_ForwardIterator | __result, | |||
input_iterator_tag | , | |||
forward_iterator_tag | ||||
) |
This is an uglified unique_copy(_InputIterator, _InputIterator, _OutputIterator) overloaded for input iterators and forward iterator as result.
Definition at line 959 of file stl_algo.h.
_OutputIterator std::__unique_copy | ( | _InputIterator | __first, | |
_InputIterator | __last, | |||
_OutputIterator | __result, | |||
input_iterator_tag | , | |||
output_iterator_tag | ||||
) |
This is an uglified unique_copy(_InputIterator, _InputIterator, _OutputIterator) overloaded for input iterators and output iterator as result.
Definition at line 936 of file stl_algo.h.
_OutputIterator std::__unique_copy | ( | _ForwardIterator | __first, | |
_ForwardIterator | __last, | |||
_OutputIterator | __result, | |||
forward_iterator_tag | , | |||
output_iterator_tag | ||||
) |
This is an uglified unique_copy(_InputIterator, _InputIterator, _OutputIterator) overloaded for forward iterators and output iterator as result.
Definition at line 913 of file stl_algo.h.
Referenced by unique_copy().
void std::_Construct | ( | _T1 * | __p, | |
const _T2 & | __value | |||
) | [inline] |
Constructs an object in existing memory by invoking an allocated object's constructor with an initializer.
Definition at line 75 of file stl_construct.h.
Referenced by __gnu_cxx::__uninitialized_copy_n(), std::raw_storage_iterator< _OutputIterator, _Tp >::operator=(), std::__uninitialized_fill<>::uninitialized_fill(), and std::__uninitialized_fill_n<>::uninitialized_fill_n().
void std::_Destroy | ( | _ForwardIterator | __first, | |
_ForwardIterator | __last | |||
) | [inline] |
Destroy a range of objects. If the value_type of the object has a trivial destructor, the compiler should optimize all of this away, otherwise the objects' destructors must be invoked.
Definition at line 97 of file stl_construct.h.
References _Destroy().
void std::_Destroy | ( | _Tp * | __pointer | ) | [inline] |
Destroy the object pointed to by a pointer type.
Definition at line 87 of file stl_construct.h.
Referenced by __uninitialized_copy_a(), __uninitialized_copy_move(), __gnu_cxx::__uninitialized_copy_n(), __gnu_cxx::__uninitialized_copy_n_a(), __uninitialized_fill_a(), __uninitialized_fill_move(), __uninitialized_fill_n_a(), __uninitialized_move_copy(), __uninitialized_move_fill(), _Destroy(), std::vector< _Tp, _Alloc >::_M_assign_aux(), std::deque< _Tp, _Alloc >::_M_destroy_data_aux(), std::vector< std::sub_match< _Bi_iter >, _Allocator >::_M_erase_at_end(), std::deque< _Tp, _Alloc >::_M_fill_initialize(), std::vector< _Tp, _Alloc >::_M_fill_insert(), std::vector< _Tp, _Alloc >::_M_insert_aux(), std::deque< _Tp, _Alloc >::_M_range_initialize(), std::vector< _Tp, _Alloc >::_M_range_insert(), std::vector< _Tp, _Alloc >::operator=(), std::vector< _Tp, _Alloc >::reserve(), std::__uninitialized_copy<>::uninitialized_copy(), std::__uninitialized_fill<>::uninitialized_fill(), std::__uninitialized_fill_n<>::uninitialized_fill_n(), std::_Temporary_buffer< _ForwardIterator, _Tp >::~_Temporary_buffer(), and std::vector< std::sub_match< _Bi_iter >, _Allocator >::~vector().
_Tp std::accumulate | ( | _InputIterator | __first, | |
_InputIterator | __last, | |||
_Tp | __init, | |||
_BinaryOperation | __binary_op | |||
) | [inline] |
Accumulate values in a range with operation.
Accumulates the values in the range [first,last) using the function object binary_op. The initial value is init. The values are processed in order.
first | Start of range. | |
last | End of range. | |
init | Starting value to add other values to. | |
binary_op | Function object to accumulate with. |
Definition at line 109 of file stl_numeric.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
_Tp std::accumulate | ( | _InputIterator | __first, | |
_InputIterator | __last, | |||
_Tp | __init | |||
) | [inline] |
Accumulate values in a range.
Accumulates the values in the range [first,last) using operator+(). The initial value is init. The values are processed in order.
first | Start of range. | |
last | End of range. | |
init | Starting value to add other values to. |
Definition at line 83 of file stl_numeric.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
Referenced by __gnu_parallel::parallel_partial_sum_linear().
_OutputIterator std::adjacent_difference | ( | _InputIterator | __first, | |
_InputIterator | __last, | |||
_OutputIterator | __result, | |||
_BinaryOperation | __binary_op | |||
) |
Return differences between adjacent values.
Computes the difference between adjacent values in the range [first,last) using the function object binary_op and writes the result to result.
first | Start of input range. | |
last | End of input range. | |
result | Output to write sums to. |
Definition at line 315 of file stl_numeric.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
_OutputIterator std::adjacent_difference | ( | _InputIterator | __first, | |
_InputIterator | __last, | |||
_OutputIterator | __result | |||
) |
Return differences between adjacent values.
Computes the difference between adjacent values in the range [first,last) using operator-() and writes the result to result.
first | Start of input range. | |
last | End of input range. | |
result | Output to write sums to. |
Definition at line 276 of file stl_numeric.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
_ForwardIterator std::adjacent_find | ( | _ForwardIterator | __first, | |
_ForwardIterator | __last, | |||
_BinaryPredicate | __binary_pred | |||
) |
Find two adjacent values in a sequence using a predicate.
first | A forward iterator. | |
last | A forward iterator. | |
binary_pred | A binary predicate. |
i
such that i
and i+1
are both valid iterators in
[first,last) and such that binary_pred
(*i,*(i+1)) is true, or last
if no such iterator exists. Definition at line 3956 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
_ForwardIterator std::adjacent_find | ( | _ForwardIterator | __first, | |
_ForwardIterator | __last | |||
) |
Find two adjacent values in a sequence that are equal.
first | A forward iterator. | |
last | A forward iterator. |
i
such that i
and i+1
are both valid iterators in
[first,last) and such that *i
== *
(i+1), or last
if no such iterator exists. Definition at line 3925 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
void std::advance | ( | _InputIterator & | __i, | |
_Distance | __n | |||
) | [inline] |
A generalization of pointer arithmetic.
i | An input iterator. | |
n | The "delta" by which to change i . |
i
by n
. For bidirectional and random access iterators, n
may be negative, in which case i
is decremented.
For random access iterators, this uses their +
and -
operations and are constant time. For other iterator classes they are linear time.
Definition at line 173 of file stl_iterator_base_funcs.h.
References __advance(), and __iterator_category().
Referenced by __find_end(), __inplace_stable_partition(), __merge_adaptive(), __merge_without_buffer(), __rotate_adaptive(), __stable_partition_adaptive(), std::vector< _Tp, _Alloc >::_M_assign_aux(), std::deque< _Tp, _Alloc >::_M_assign_aux(), std::vector< bool, _Alloc >::_M_assign_aux(), std::deque< _Tp, _Alloc >::_M_insert_aux(), std::deque< _Tp, _Alloc >::_M_range_initialize(), std::vector< _Tp, _Alloc >::_M_range_insert(), equal_range(), lower_bound(), and upper_bound().
__gnu_cxx::__promote<_Tp>::__type std::arg | ( | _Tp | __x | ) | [inline] |
back_insert_iterator<_Container> std::back_inserter | ( | _Container & | __x | ) | [inline] |
x | A container of arbitrary type. |
x
.Definition at line 456 of file stl_iterator.h.
Referenced by regex_replace().
_Bind_result< _Result, typename _Maybe_wrap_member_pointer< _Functor >::type(_ArgTypes...)> std::bind | ( | _Functor | __f, | |
_ArgTypes... | __args | |||
) | [inline] |
ios_base& std::boolalpha | ( | ios_base & | __base | ) | [inline] |
Calls base.setf(ios_base::boolalpha).
Definition at line 792 of file ios_base.h.
References std::ios_base::setf().
Referenced by noboolalpha().
_OI std::copy | ( | _II | __first, | |
_II | __last, | |||
_OI | __result | |||
) | [inline] |
Copies the range [first,last) into result.
first | An input iterator. | |
last | An input iterator. | |
result | An output iterator. |
memmove
whenever possible. Failing that, if random access iterators are passed, then the loop count will be known (and therefore a candidate for compiler optimizations such as unrolling). Result may not be contained within [first,last); the copy_backward function should be used instead.Note that the end of the output range is permitted to be contained within [first,last).
Definition at line 456 of file stl_algobase.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
_BI2 std::copy_backward | ( | _BI1 | __first, | |
_BI1 | __last, | |||
_BI2 | __result | |||
) | [inline] |
Copies the range [first,last) into result.
first | A bidirectional iterator. | |
last | A bidirectional iterator. | |
result | A bidirectional iterator. |
memmove
whenever possible. Failing that, if random access iterators are passed, then the loop count will be known (and therefore a candidate for compiler optimizations such as unrolling).Result may not be in the range [first,last). Use copy instead. Note that the start of the output range may overlap [first,last).
Definition at line 624 of file stl_algobase.h.
References __copy_move_backward_a2(), __glibcxx_function_requires, and __glibcxx_requires_valid_range.
iterator_traits<_InputIterator>::difference_type std::count | ( | _InputIterator | __first, | |
_InputIterator | __last, | |||
const _Tp & | __value | |||
) |
Count the number of copies of a value in a sequence.
first | An input iterator. | |
last | An input iterator. | |
value | The value to be counted. |
i
in the range
[first,last) for which *i
== value
Definition at line 3987 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
iterator_traits<_InputIterator>::difference_type std::count_if | ( | _InputIterator | __first, | |
_InputIterator | __last, | |||
_Predicate | __pred | |||
) |
Count the elements of a sequence for which a predicate is true.
first | An input iterator. | |
last | An input iterator. | |
pred | A predicate. |
i
in the range
[first,last) for which pred(*i)
is true. Definition at line 4011 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
ios_base& std::dec | ( | ios_base & | __base | ) | [inline] |
Calls base.setf(ios_base::dec, ios_base::basefield).
Definition at line 930 of file ios_base.h.
References std::ios_base::setf().
Referenced by operator<<(), and operator>>().
iterator_traits<_InputIterator>::difference_type std::distance | ( | _InputIterator | __first, | |
_InputIterator | __last | |||
) | [inline] |
A generalization of pointer arithmetic.
first | An input iterator. | |
last | An input iterator. |
n
such that first + n == last. This requires that last
must be reachable from first
. Note that n
may be negative.
For random access iterators, this uses their +
and -
operations and are constant time. For other iterator classes they are linear time.
Definition at line 115 of file stl_iterator_base_funcs.h.
References __distance(), and __iterator_category().
Referenced by std::__detail::__distance_fw(), __find_end(), __inplace_stable_partition(), __is_heap(), __merge_adaptive(), __merge_without_buffer(), __rotate_adaptive(), __stable_partition_adaptive(), std::vector< _Tp, _Alloc >::_M_assign_aux(), std::deque< _Tp, _Alloc >::_M_assign_aux(), std::vector< bool, _Alloc >::_M_assign_aux(), std::vector< bool, _Alloc >::_M_initialize_range(), std::vector< bool, _Alloc >::_M_insert_range(), std::vector< std::sub_match< _Bi_iter >, _Allocator >::_M_range_initialize(), std::deque< _Tp, _Alloc >::_M_range_initialize(), std::vector< _Tp, _Alloc >::_M_range_insert(), std::deque< _Tp, _Alloc >::_M_range_insert_aux(), std::_Hashtable< _Value, _Value, _Alloc, std::_Identity< _Value >, _Pred, _Hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, __cache_hash_code, true, false >::bucket_size(), std::_Rb_tree< _Key, _Val, _KeyOfValue, _Compare, _Alloc >::count(), equal_range(), inplace_merge(), __gnu_cxx::hashtable< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >::insert_equal(), __gnu_cxx::hashtable< _Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc >::insert_unique(), std::sub_match< _BiIter >::length(), lower_bound(), __gnu_parallel::multiseq_partition(), __gnu_parallel::multiseq_selection(), std::match_results< _Bi_iter >::position(), __gnu_cxx::random_sample_n(), std::list< _Tp, _Alloc >::size(), and upper_bound().
basic_ostream<_CharT, _Traits>& std::endl | ( | basic_ostream< _CharT, _Traits > & | __os | ) | [inline] |
Write a newline and flush the stream.
This manipulator is often mistakenly used when a simple newline is desired, leading to poor buffering performance. See http://gcc.gnu.org/onlinedocs/libstdc++/27_io/howto.html#2 for more on this subject.
Definition at line 545 of file ostream.
References flush(), std::basic_ostream< _CharT, _Traits >::put(), and std::basic_ios< _CharT, _Traits >::widen().
basic_ostream<_CharT, _Traits>& std::ends | ( | basic_ostream< _CharT, _Traits > & | __os | ) | [inline] |
Write a null character into the output sequence.
"Null character" is CharT()
by definition. For CharT of char
, this correctly writes the ASCII NUL
character string terminator.
Definition at line 556 of file ostream.
References std::basic_ostream< _CharT, _Traits >::put().
bool std::equal | ( | _II1 | __first1, | |
_II1 | __last1, | |||
_II2 | __first2 | |||
) | [inline] |
Tests a range for element-wise equality.
first1 | An input iterator. | |
last1 | An input iterator. | |
first2 | An input iterator. |
==
and returns true or false depending on whether all of the corresponding elements of the ranges are equal.
Definition at line 938 of file stl_algobase.h.
References __equal_aux(), __glibcxx_function_requires, and __glibcxx_requires_valid_range.
bool std::equal | ( | _IIter1 | __first1, | |
_IIter1 | __last1, | |||
_IIter2 | __first2, | |||
_BinaryPredicate | __binary_pred | |||
) | [inline] |
Tests a range for element-wise equality.
first1 | An input iterator. | |
last1 | An input iterator. | |
first2 | An input iterator. | |
binary_pred | A binary predicate functor. |
Definition at line 969 of file stl_algobase.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
_Tp std::fabs | ( | const std::complex< _Tp > & | ) | [inline] |
void std::fill | ( | _ForwardIterator | __first, | |
_ForwardIterator | __last, | |||
const _Tp & | __value | |||
) | [inline] |
Fills the range [first,last) with copies of value.
first | A forward iterator. | |
last | A forward iterator. | |
value | A reference-to-const of arbitrary type. |
memset
or wmemset
.
Definition at line 719 of file stl_algobase.h.
References __fill_a(), __glibcxx_function_requires, and __glibcxx_requires_valid_range.
_OI std::fill_n | ( | _OI | __first, | |
_Size | __n, | |||
const _Tp & | __value | |||
) | [inline] |
Fills the range [first,first+n) with copies of value.
first | An output iterator. | |
n | The count of copies to perform. | |
value | A reference-to-const of arbitrary type. |
memset
or @ wmemset.
Definition at line 772 of file stl_algobase.h.
References __fill_n_a(), and __glibcxx_function_requires.
_InputIterator std::find | ( | _InputIterator | __first, | |
_InputIterator | __last, | |||
const _Tp & | __val | |||
) | [inline] |
Find the first occurrence of a value in a sequence.
first | An input iterator. | |
last | An input iterator. | |
val | The value to find. |
i
in the range
[first,last) such that *i
== val
, or last
if no such iterator exists. Definition at line 3805 of file stl_algo.h.
References __find(), __glibcxx_function_requires, __glibcxx_requires_valid_range, and __iterator_category().
_ForwardIterator1 std::find_end | ( | _ForwardIterator1 | __first1, | |
_ForwardIterator1 | __last1, | |||
_ForwardIterator2 | __first2, | |||
_ForwardIterator2 | __last2, | |||
_BinaryPredicate | __comp | |||
) | [inline] |
Find last matching subsequence in a sequence using a predicate.
first1 | Start of range to search. | |
last1 | End of range to search. | |
first2 | Start of sequence to match. | |
last2 | End of sequence to match. | |
comp | The predicate to use. |
i
in the range
[first1,last1-(last2-first2)) such that predicate
(*(i+N),
(first2+N)) is true for each N
in the range
[0,last2-first2), or last1
if no such iterator exists.
[first1,last1) for a sub-sequence that compares equal value-by-value with the sequence given by
[first2,last2) using comp as a predicate and returns an iterator to the first element of the sub-sequence, or last1
if the sub-sequence is not found. The sub-sequence will be the last such subsequence contained in [first,last1).
Because the sub-sequence must lie completely within the range [first1,last1) it must start at a position less than
last1-
(last2-first2) where last2-first2
is the length of the sub-sequence. This means that the returned iterator i
will be in the range [first1,last1-(last2-first2))
Definition at line 651 of file stl_algo.h.
References __find_end(), __glibcxx_function_requires, __glibcxx_requires_valid_range, and __iterator_category().
_ForwardIterator1 std::find_end | ( | _ForwardIterator1 | __first1, | |
_ForwardIterator1 | __last1, | |||
_ForwardIterator2 | __first2, | |||
_ForwardIterator2 | __last2 | |||
) | [inline] |
Find last matching subsequence in a sequence.
first1 | Start of range to search. | |
last1 | End of range to search. | |
first2 | Start of sequence to match. | |
last2 | End of sequence to match. |
i
in the range
[first1,last1-(last2-first2)) such that *
(i+N) == *
(first2+N) for each N
in the range
[0,last2-first2), or last1
if no such iterator exists.
[first1,last1) for a sub-sequence that compares equal value-by-value with the sequence given by
[first2,last2) and returns an iterator to the first element of the sub-sequence, or last1
if the sub-sequence is not found. The sub-sequence will be the last such subsequence contained in [first,last1).
Because the sub-sequence must lie completely within the range [first1,last1) it must start at a position less than
last1-
(last2-first2) where last2-first2
is the length of the sub-sequence. This means that the returned iterator i
will be in the range [first1,last1-(last2-first2))
Definition at line 605 of file stl_algo.h.
References __find_end(), __glibcxx_function_requires, __glibcxx_requires_valid_range, and __iterator_category().
_InputIterator std::find_first_of | ( | _InputIterator | __first1, | |
_InputIterator | __last1, | |||
_ForwardIterator | __first2, | |||
_ForwardIterator | __last2, | |||
_BinaryPredicate | __comp | |||
) |
Find element from a set in a sequence using a predicate.
first1 | Start of range to search. | |
last1 | End of range to search. | |
first2 | Start of match candidates. | |
last2 | End of match candidates. | |
comp | Predicate to use. |
i
in the range
[first1,last1) such that comp
(*i, *
(i2)) is true and i2 is an iterator in [first2,last2), or last1
if no such iterator exists.
[first1,last1) for an element that is equal to some element in the range [first2,last2). If found, returns an iterator in the range [first1,last1), otherwise returns last1
.
Definition at line 3895 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
_InputIterator std::find_first_of | ( | _InputIterator | __first1, | |
_InputIterator | __last1, | |||
_ForwardIterator | __first2, | |||
_ForwardIterator | __last2 | |||
) |
Find element from a set in a sequence.
first1 | Start of range to search. | |
last1 | End of range to search. | |
first2 | Start of match candidates. | |
last2 | End of match candidates. |
i
in the range
[first1,last1) such that *i
== *
(i2) such that i2 is an iterator in [first2,last2), or last1
if no such iterator exists.
[first1,last1) for an element that is equal to some element in the range [first2,last2). If found, returns an iterator in the range [first1,last1), otherwise returns last1
.
Definition at line 3856 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
_InputIterator std::find_if | ( | _InputIterator | __first, | |
_InputIterator | __last, | |||
_Predicate | __pred | |||
) | [inline] |
Find the first element in a sequence for which a predicate is true.
first | An input iterator. | |
last | An input iterator. | |
pred | A predicate. |
i
in the range
[first,last) such that pred(*i)
is true, or last
if no such iterator exists. Definition at line 3828 of file stl_algo.h.
References __find_if(), __glibcxx_function_requires, __glibcxx_requires_valid_range, and __iterator_category().
ios_base& std::fixed | ( | ios_base & | __base | ) | [inline] |
Calls base.setf(ios_base::fixed, ios_base::floatfield).
Definition at line 955 of file ios_base.h.
References std::ios_base::setf().
Referenced by operator<<().
basic_ostream<_CharT, _Traits>& std::flush | ( | basic_ostream< _CharT, _Traits > & | __os | ) | [inline] |
Flushes the output stream.
This manipulator simply calls the stream's flush()
member function.
Definition at line 566 of file ostream.
References std::basic_ostream< _CharT, _Traits >::flush().
Referenced by __gnu_cxx::sequence_buffer< _Sequence, _Buf_sz >::append(), endl(), __gnu_cxx::sequence_buffer< _Sequence, _Buf_sz >::push_back(), and __gnu_cxx::sequence_buffer< _Sequence, _Buf_sz >::~sequence_buffer().
_Function std::for_each | ( | _InputIterator | __first, | |
_InputIterator | __last, | |||
_Function | __f | |||
) |
Apply a function to every element of a sequence.
first | An input iterator. | |
last | An input iterator. | |
f | A unary function object. |
f
.f
to each element in the range
[first,last). f
must not modify the order of the sequence. If f
has a return value it is ignored.
Definition at line 3785 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
front_insert_iterator<_Container> std::front_inserter | ( | _Container & | __x | ) | [inline] |
x | A container of arbitrary type. |
x
.Definition at line 539 of file stl_iterator.h.
void std::generate | ( | _ForwardIterator | __first, | |
_ForwardIterator | __last, | |||
_Generator | __gen | |||
) |
Assign the result of a function object to each value in a sequence.
first | A forward iterator. | |
last | A forward iterator. | |
gen | A function object taking no arguments and returning std::iterator_traits<_ForwardIterator>::value_type |
*i
= gen()
for each i
in the range
[first,last).
Definition at line 4398 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
_OutputIterator std::generate_n | ( | _OutputIterator | __first, | |
_Size | __n, | |||
_Generator | __gen | |||
) |
Assign the result of a function object to each value in a sequence.
first | A forward iterator. | |
n | The length of the sequence. | |
gen | A function object taking no arguments and returning std::iterator_traits<_ForwardIterator>::value_type |
first+n
*i
= gen()
for each i
in the range
[first,first+n).
Definition at line 4425 of file stl_algo.h.
References __glibcxx_function_requires.
pair<_Tp*, ptrdiff_t> std::get_temporary_buffer | ( | ptrdiff_t | __len | ) |
Allocates a temporary buffer.
len | The number of objects of type Tp. |
This function tries to obtain storage for len
adjacent Tp objects. The objects themselves are not constructed, of course. A pair<> is returned containing "the buffer s address and capacity (in the units of sizeof(Tp)), or a pair of 0 values if no storage can be obtained." Note that the capacity obtained may be less than that requested if the memory is unavailable; you should compare len with the .second return value.
Provides the nothrow exception guarantee.
Definition at line 90 of file stl_tempbuf.h.
Referenced by std::_Temporary_buffer< _ForwardIterator, _Tp >::_Temporary_buffer().
basic_istream<_CharT, _Traits>& std::getline | ( | basic_istream< _CharT, _Traits > & | __is, | |
__gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base > & | __str | |||
) | [inline] |
Read a line from stream into a string.
is | Input stream. | |
str | Buffer to store into. |
Definition at line 2318 of file vstring.h.
References std::basic_ios< _CharT, _Traits >::widen().
Referenced by std::basic_istream< char >::getline(), and getline().
basic_istream< _CharT, _Traits > & std::getline | ( | basic_istream< _CharT, _Traits > & | __is, | |
__gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base > & | __str, | |||
_CharT | __delim | |||
) |
Read a line from stream into a string.
is | Input stream. | |
str | Buffer to store into. | |
delim | Character marking end of line. |
Definition at line 627 of file vstring.tcc.
References std::basic_ios< _CharT, _Traits >::_M_setstate(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::append(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::erase(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::max_size(), std::basic_ios< _CharT, _Traits >::rdbuf(), and std::basic_ios< _CharT, _Traits >::setstate().
basic_istream<_CharT, _Traits>& std::getline | ( | basic_istream< _CharT, _Traits > & | __is, | |
basic_string< _CharT, _Traits, _Alloc > & | __str | |||
) | [inline] |
Read a line from stream into a string.
is | Input stream. | |
str | Buffer to store into. |
Definition at line 2460 of file basic_string.h.
References getline(), and std::basic_ios< _CharT, _Traits >::widen().
basic_istream< _CharT, _Traits > & std::getline | ( | basic_istream< _CharT, _Traits > & | __is, | |
basic_string< _CharT, _Traits, _Alloc > & | __str, | |||
_CharT | __delim | |||
) |
Read a line from stream into a string.
is | Input stream. | |
str | Buffer to store into. | |
delim | Character marking end of line. |
Definition at line 1043 of file basic_string.tcc.
References std::basic_ios< _CharT, _Traits >::_M_setstate(), std::basic_string< _CharT, _Traits, _Alloc >::erase(), std::basic_string< _CharT, _Traits, _Alloc >::max_size(), std::basic_ios< _CharT, _Traits >::rdbuf(), and std::basic_ios< _CharT, _Traits >::setstate().
bool std::has_facet | ( | const locale & | __loc | ) | throw () |
Test for the presence of a facet.
has_facet tests the locale argument for the presence of the facet type provided as the template parameter. Facets derived from the facet parameter will also return true.
Facet | The facet type to test the presence of. | |
locale | The locale to test. |
Definition at line 96 of file locale_classes.tcc.
ios_base& std::hex | ( | ios_base & | __base | ) | [inline] |
Calls base.setf(ios_base::hex, ios_base::basefield).
Definition at line 938 of file ios_base.h.
References std::ios_base::setf().
Referenced by operator<<(), and operator>>().
_Tp std::inner_product | ( | _InputIterator1 | __first1, | |
_InputIterator1 | __last1, | |||
_InputIterator2 | __first2, | |||
_Tp | __init, | |||
_BinaryOperation1 | __binary_op1, | |||
_BinaryOperation2 | __binary_op2 | |||
) | [inline] |
Compute inner product of two ranges.
Starting with an initial value of init, applies binary_op2 to successive elements from the two ranges and accumulates each result into the accumulated value using binary_op1. The values in the ranges are processed in order.
first1 | Start of range 1. | |
last1 | End of range 1. | |
first2 | Start of range 2. | |
init | Starting value to add other values to. | |
binary_op1 | Function object to accumulate with. | |
binary_op2 | Function object to apply to pairs of input values. |
Definition at line 169 of file stl_numeric.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
_Tp std::inner_product | ( | _InputIterator1 | __first1, | |
_InputIterator1 | __last1, | |||
_InputIterator2 | __first2, | |||
_Tp | __init | |||
) | [inline] |
Compute inner product of two ranges.
Starting with an initial value of init, multiplies successive elements from the two ranges and adds each product into the accumulated value using operator+(). The values in the ranges are processed in order.
first1 | Start of range 1. | |
last1 | End of range 1. | |
first2 | Start of range 2. | |
init | Starting value to add other values to. |
Definition at line 137 of file stl_numeric.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
void std::inplace_merge | ( | _BidirectionalIterator | __first, | |
_BidirectionalIterator | __middle, | |||
_BidirectionalIterator | __last, | |||
_Compare | __comp | |||
) |
Merges two sorted ranges in place.
first | An iterator. | |
middle | Another iterator. | |
last | Another iterator. | |
comp | A functor to use for comparisons. |
If enough additional memory is available, this takes (last-first)-1 comparisons. Otherwise an NlogN algorithm is used, where N is distance(first,last).
The comparison function should have the same effects on ordering as the function used for the initial sort.
Definition at line 2830 of file stl_algo.h.
References __glibcxx_function_requires, __glibcxx_requires_sorted_pred, __merge_adaptive(), __merge_without_buffer(), std::_Temporary_buffer< _ForwardIterator, _Tp >::begin(), distance(), and std::_Temporary_buffer< _ForwardIterator, _Tp >::size().
void std::inplace_merge | ( | _BidirectionalIterator | __first, | |
_BidirectionalIterator | __middle, | |||
_BidirectionalIterator | __last | |||
) |
Merges two sorted ranges in place.
first | An iterator. | |
middle | Another iterator. | |
last | Another iterator. |
If enough additional memory is available, this takes (last-first)-1 comparisons. Otherwise an NlogN algorithm is used, where N is distance(first,last).
Definition at line 2776 of file stl_algo.h.
References __glibcxx_function_requires, __glibcxx_requires_sorted, __merge_adaptive(), __merge_without_buffer(), std::_Temporary_buffer< _ForwardIterator, _Tp >::begin(), distance(), and std::_Temporary_buffer< _ForwardIterator, _Tp >::size().
insert_iterator<_Container> std::inserter | ( | _Container & | __x, | |
_Iterator | __i | |||
) | [inline] |
x | A container of arbitrary type. |
x
.Definition at line 645 of file stl_iterator.h.
Referenced by std::deque< _Tp, _Alloc >::_M_range_insert_aux().
ios_base& std::internal | ( | ios_base & | __base | ) | [inline] |
Calls base.setf(ios_base::internal, ios_base::adjustfield).
Definition at line 905 of file ios_base.h.
References std::ios_base::setf().
bool std::isalnum | ( | _CharT | __c, | |
const locale & | __loc | |||
) | [inline] |
Convenience interface to ctype.is(ctype_base::alnum, __c).
Definition at line 2611 of file locale_facets.h.
References std::ctype_base::alnum.
bool std::isalpha | ( | _CharT | __c, | |
const locale & | __loc | |||
) | [inline] |
Convenience interface to ctype.is(ctype_base::alpha, __c).
Definition at line 2587 of file locale_facets.h.
References std::ctype_base::alpha.
bool std::iscntrl | ( | _CharT | __c, | |
const locale & | __loc | |||
) | [inline] |
Convenience interface to ctype.is(ctype_base::cntrl, __c).
Definition at line 2569 of file locale_facets.h.
References std::ctype_base::cntrl.
bool std::isdigit | ( | _CharT | __c, | |
const locale & | __loc | |||
) | [inline] |
Convenience interface to ctype.is(ctype_base::digit, __c).
Definition at line 2593 of file locale_facets.h.
References std::ctype_base::digit.
bool std::isgraph | ( | _CharT | __c, | |
const locale & | __loc | |||
) | [inline] |
Convenience interface to ctype.is(ctype_base::graph, __c).
Definition at line 2617 of file locale_facets.h.
References std::ctype_base::graph.
bool std::islower | ( | _CharT | __c, | |
const locale & | __loc | |||
) | [inline] |
Convenience interface to ctype.is(ctype_base::lower, __c).
Definition at line 2581 of file locale_facets.h.
References std::ctype_base::lower.
bool std::isprint | ( | _CharT | __c, | |
const locale & | __loc | |||
) | [inline] |
Convenience interface to ctype.is(ctype_base::print, __c).
Definition at line 2563 of file locale_facets.h.
References std::ctype_base::print.
bool std::ispunct | ( | _CharT | __c, | |
const locale & | __loc | |||
) | [inline] |
Convenience interface to ctype.is(ctype_base::punct, __c).
Definition at line 2599 of file locale_facets.h.
References std::ctype_base::punct.
bool std::isspace | ( | _CharT | __c, | |
const locale & | __loc | |||
) | [inline] |
Convenience interface to ctype.is(ctype_base::space, __c).
Definition at line 2557 of file locale_facets.h.
References std::ctype_base::space.
bool std::isupper | ( | _CharT | __c, | |
const locale & | __loc | |||
) | [inline] |
Convenience interface to ctype.is(ctype_base::upper, __c).
Definition at line 2575 of file locale_facets.h.
References std::ctype_base::upper.
bool std::isxdigit | ( | _CharT | __c, | |
const locale & | __loc | |||
) | [inline] |
Convenience interface to ctype.is(ctype_base::xdigit, __c).
Definition at line 2605 of file locale_facets.h.
References std::ctype_base::xdigit.
void std::iter_swap | ( | _ForwardIterator1 | __a, | |
_ForwardIterator2 | __b | |||
) | [inline] |
Swaps the contents of two iterators.
a | An iterator. | |
b | Another iterator. |
Definition at line 121 of file stl_algobase.h.
References __glibcxx_function_requires.
ios_base& std::left | ( | ios_base & | __base | ) | [inline] |
Calls base.setf(ios_base::left, ios_base::adjustfield).
Definition at line 913 of file ios_base.h.
References std::ios_base::setf().
Referenced by __ostream_insert(), operator<<(), and __gnu_parallel::parallel_partition().
bool std::lexicographical_compare | ( | _II1 | __first1, | |
_II1 | __last1, | |||
_II2 | __first2, | |||
_II2 | __last2, | |||
_Compare | __comp | |||
) |
Performs "dictionary" comparison on ranges.
first1 | An input iterator. | |
last1 | An input iterator. | |
first2 | An input iterator. | |
last2 | An input iterator. | |
comp | A comparison functor. |
lexicographical_compare
, but uses the comp parameter instead of <
.
Definition at line 1033 of file stl_algobase.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
bool std::lexicographical_compare | ( | _II1 | __first1, | |
_II1 | __last1, | |||
_II2 | __first2, | |||
_II2 | __last2 | |||
) | [inline] |
Performs "dictionary" comparison on ranges.
first1 | An input iterator. | |
last1 | An input iterator. | |
first2 | An input iterator. | |
last2 | An input iterator. |
memcmp
.
Definition at line 999 of file stl_algobase.h.
References __glibcxx_function_requires, __glibcxx_requires_valid_range, and __lexicographical_compare_aux().
void std::make_heap | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __last, | |||
_Compare | __comp | |||
) |
Construct a heap over a range using comparison functor.
first | Start of heap. | |
last | End of heap. | |
comp | Comparison functor to use. |
Definition at line 411 of file stl_heap.h.
References __adjust_heap(), __glibcxx_function_requires, __glibcxx_requires_valid_range, and _GLIBCXX_MOVE.
void std::make_heap | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __last | |||
) |
Construct a heap over a range.
first | Start of heap. | |
last | End of heap. |
Definition at line 371 of file stl_heap.h.
References __adjust_heap(), __glibcxx_function_requires, __glibcxx_requires_valid_range, and _GLIBCXX_MOVE.
pair<_T1, _T2> std::make_pair | ( | _T1 | __x, | |
_T2 | __y | |||
) | [inline] |
A convenience wrapper for creating a pair from two objects.
x | The first object. | |
y | The second object. |
Definition at line 218 of file stl_pair.h.
Referenced by __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::_M_get_distance(), std::__detail::_Prime_rehash_policy::_M_need_rehash(), std::__debug::set< _Key, _Compare, _Allocator >::equal_range(), __gnu_debug::_Safe_association< ::std::__debug::unordered_map< _Key, _Tp, _Hash, _Pred, _Alloc > >::equal_range(), std::__debug::multiset< _Key, _Compare, _Allocator >::equal_range(), std::__debug::multimap< _Key, _Tp, _Compare, _Allocator >::equal_range(), std::__debug::map< _Key, _Tp, _Compare, _Allocator >::equal_range(), std::_Hashtable< _Key, _Value, _Allocator, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, __cache_hash_code, __constant_iterators, __unique_keys >::equal_range(), __gnu_parallel::find_template(), __gnu_debug::_Safe_association< ::std::__debug::unordered_map< _Key, _Tp, _Hash, _Pred, _Alloc > >::insert(), std::__parallel::mismatch_switch(), __gnu_parallel::multiseq_partition(), __gnu_parallel::multiseq_selection(), std::__detail::_Map_base< _Key, _Pair, std::_Select1st< _Pair >, true, _Hashtable >::operator[](), __gnu_parallel::parallel_merge_advance(), __gnu_parallel::parallel_multiway_merge(), __gnu_parallel::parallel_set_operation(), __gnu_parallel::parallel_sort_mwms_pu(), __gnu_parallel::parallel_sort_qsb(), __gnu_parallel::qsb_local_sort_with_helping(), __gnu_parallel::find_first_of_selector< ForwardIterator >::sequential_algorithm(), __gnu_parallel::adjacent_find_selector::sequential_algorithm(), and __gnu_parallel::find_if_selector::sequential_algorithm().
const _Tp & std::max | ( | const _Tp & | __a, | |
const _Tp & | __b, | |||
_Compare | __comp | |||
) | [inline] |
This does what you think it does.
a | A thing of arbitrary type. | |
b | Another thing of arbitrary type. | |
comp | A comparison functor. |
Definition at line 252 of file stl_algobase.h.
const _Tp & std::max | ( | const _Tp & | __a, | |
const _Tp & | __b | |||
) | [inline] |
This does what you think it does.
a | A thing of arbitrary type. | |
b | Another thing of arbitrary type. |
Definition at line 210 of file stl_algobase.h.
References __glibcxx_function_requires.
Referenced by std::tr1::__detail::__bessel_jn(), std::tr1::__detail::__ellint_rd(), std::tr1::__detail::__ellint_rf(), std::tr1::__detail::__ellint_rj(), std::_Hashtable< _Key, _Value, _Allocator, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, __cache_hash_code, __constant_iterators, __unique_keys >::_Hashtable(), std::vector< std::sub_match< _Bi_iter >, _Allocator >::_M_check_len(), std::vector< bool, _Alloc >::_M_check_len(), std::_Deque_base< _Tp, _Alloc >::_M_initialize_map(), std::__detail::_Prime_rehash_policy::_M_need_rehash(), std::deque< _Tp, _Alloc >::_M_reallocate_map(), __gnu_cxx::rope< _CharT, _Alloc >::_S_apply_to_pieces(), __gnu_parallel::multiseq_partition(), __gnu_parallel::multiseq_selection(), std::basic_stringbuf< _CharT, _Traits, _Alloc >::overflow(), and std::_Hashtable< _Key, _Value, _Allocator, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, __cache_hash_code, __constant_iterators, __unique_keys >::rehash().
_ForwardIterator std::max_element | ( | _ForwardIterator | __first, | |
_ForwardIterator | __last, | |||
_Compare | __comp | |||
) |
Return the maximum element in a range using comparison functor.
first | Start of range. | |
last | End of range. | |
comp | Comparison functor. |
Definition at line 5616 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
_ForwardIterator std::max_element | ( | _ForwardIterator | __first, | |
_ForwardIterator | __last | |||
) |
Return the maximum element in a range.
first | Start of range. | |
last | End of range. |
Definition at line 5589 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
_Mem_fn<_Tp _Class::*> std::mem_fn | ( | _Tp _Class::* | __pm | ) | [inline] |
Returns a function object that forwards to the member pointer pm.
Definition at line 799 of file tr1_impl/functional.
Referenced by __callable_functor(), std::_Function_handler< void(_ArgTypes...), _Member _Class::* >::_M_invoke(), and std::_Function_handler< _Res(_ArgTypes...), _Member _Class::* >::_M_invoke().
_OutputIterator std::merge | ( | _InputIterator1 | __first1, | |
_InputIterator1 | __last1, | |||
_InputIterator2 | __first2, | |||
_InputIterator2 | __last2, | |||
_OutputIterator | __result, | |||
_Compare | __comp | |||
) |
Merges two sorted ranges.
first1 | An iterator. | |
first2 | Another iterator. | |
last1 | Another iterator. | |
last2 | Another iterator. | |
result | An iterator pointing to the end of the merged range. | |
comp | A functor to use for comparisons. |
The comparison function should have the same effects on ordering as the function used for the initial sort.
Definition at line 4908 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_sorted_set_pred.
_OutputIterator std::merge | ( | _InputIterator1 | __first1, | |
_InputIterator1 | __last1, | |||
_InputIterator2 | __first2, | |||
_InputIterator2 | __last2, | |||
_OutputIterator | __result | |||
) |
Merges two sorted ranges.
first1 | An iterator. | |
first2 | Another iterator. | |
last1 | Another iterator. | |
last2 | Another iterator. | |
result | An iterator pointing to the end of the merged range. |
Definition at line 4846 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_sorted_set.
const _Tp & std::min | ( | const _Tp & | __a, | |
const _Tp & | __b, | |||
_Compare | __comp | |||
) | [inline] |
This does what you think it does.
a | A thing of arbitrary type. | |
b | Another thing of arbitrary type. | |
comp | A comparison functor. |
Definition at line 232 of file stl_algobase.h.
const _Tp & std::min | ( | const _Tp & | __a, | |
const _Tp & | __b | |||
) | [inline] |
This does what you think it does.
a | A thing of arbitrary type. | |
b | Another thing of arbitrary type. |
Definition at line 188 of file stl_algobase.h.
References __glibcxx_function_requires.
Referenced by std::__lexicographical_compare< true >::__lc(), __merge_sort_loop(), std::bitset< _Nb >::_M_copy_from_string(), std::time_get< _CharT, _InIter >::_M_extract_name(), __gnu_cxx::rope< _CharT, _Alloc >::_S_apply_to_pieces(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::compare(), std::basic_string< _CharT, _Traits, _Alloc >::compare(), std::basic_string< _CharT, _Traits, _Allocator >::compare(), std::codecvt< _InternT, _ExternT, encoding_state >::do_length(), __gnu_parallel::multiseq_partition(), __gnu_parallel::multiseq_selection(), __gnu_parallel::multiway_merge_3_combined(), __gnu_parallel::multiway_merge_4_combined(), __gnu_parallel::multiway_merge_loser_tree(), __gnu_parallel::multiway_merge_loser_tree_combined(), __gnu_parallel::multiway_merge_loser_tree_sentinel(), __gnu_parallel::multiway_merge_loser_tree_unguarded(), std::basic_stringbuf< _CharT, _Traits, _Alloc >::overflow(), __gnu_parallel::parallel_multiway_merge(), __gnu_parallel::parallel_random_shuffle_drs(), __gnu_parallel::parallel_set_operation(), __gnu_parallel::parallel_sort_qs_divide(), std::basic_istream< _CharT, _Traits >::readsome(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::rfind(), std::basic_string< _CharT, _Traits, _Alloc >::rfind(), __gnu_parallel::search_template(), __gnu_parallel::sequential_random_shuffle(), std::basic_filebuf< _CharT, _Traits >::underflow(), std::basic_streambuf< _CharT, _Traits >::xsgetn(), std::basic_streambuf< _CharT, _Traits >::xsputn(), and std::basic_filebuf< _CharT, _Traits >::xsputn().
_ForwardIterator std::min_element | ( | _ForwardIterator | __first, | |
_ForwardIterator | __last, | |||
_Compare | __comp | |||
) |
Return the minimum element in a range using comparison functor.
first | Start of range. | |
last | End of range. | |
comp | Comparison functor. |
Definition at line 5562 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
_ForwardIterator std::min_element | ( | _ForwardIterator | __first, | |
_ForwardIterator | __last | |||
) |
Return the minimum element in a range.
first | Start of range. | |
last | End of range. |
Definition at line 5535 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
pair<_InputIterator1, _InputIterator2> std::mismatch | ( | _InputIterator1 | __first1, | |
_InputIterator1 | __last1, | |||
_InputIterator2 | __first2, | |||
_BinaryPredicate | __binary_pred | |||
) |
Finds the places in ranges which don't match.
first1 | An input iterator. | |
last1 | An input iterator. | |
first2 | An input iterator. | |
binary_pred | A binary predicate functor. |
Definition at line 1109 of file stl_algobase.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
pair<_InputIterator1, _InputIterator2> std::mismatch | ( | _InputIterator1 | __first1, | |
_InputIterator1 | __last1, | |||
_InputIterator2 | __first2 | |||
) |
Finds the places in ranges which don't match.
first1 | An input iterator. | |
last1 | An input iterator. | |
first2 | An input iterator. |
==
and returns a pair of iterators. The first iterator points into the first range, the second iterator points into the second range, and the elements pointed to by the iterators are not equal.
Definition at line 1072 of file stl_algobase.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
bool std::next_permutation | ( | _BidirectionalIterator | __first, | |
_BidirectionalIterator | __last, | |||
_Compare | __comp | |||
) |
Permute range into the next "dictionary" ordering using comparison functor.
first | Start of range. | |
last | End of range. | |
comp | A comparison functor. |
Definition at line 3273 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
bool std::next_permutation | ( | _BidirectionalIterator | __first, | |
_BidirectionalIterator | __last | |||
) |
Permute range into the next "dictionary" ordering.
first | Start of range. | |
last | End of range. |
Definition at line 3217 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
ios_base& std::noboolalpha | ( | ios_base & | __base | ) | [inline] |
Calls base.unsetf(ios_base::boolalpha).
Definition at line 800 of file ios_base.h.
References boolalpha(), and std::ios_base::unsetf().
ios_base& std::noshowbase | ( | ios_base & | __base | ) | [inline] |
Calls base.unsetf(ios_base::showbase).
Definition at line 816 of file ios_base.h.
References showbase(), and std::ios_base::unsetf().
ios_base& std::noshowpoint | ( | ios_base & | __base | ) | [inline] |
Calls base.unsetf(ios_base::showpoint).
Definition at line 832 of file ios_base.h.
References showpoint(), and std::ios_base::unsetf().
ios_base& std::noshowpos | ( | ios_base & | __base | ) | [inline] |
Calls base.unsetf(ios_base::showpos).
Definition at line 848 of file ios_base.h.
References showpos(), and std::ios_base::unsetf().
ios_base& std::noskipws | ( | ios_base & | __base | ) | [inline] |
Calls base.unsetf(ios_base::skipws).
Definition at line 864 of file ios_base.h.
References skipws(), and std::ios_base::unsetf().
ios_base& std::nounitbuf | ( | ios_base & | __base | ) | [inline] |
Calls base.unsetf(ios_base::unitbuf).
Definition at line 896 of file ios_base.h.
References unitbuf(), and std::ios_base::unsetf().
ios_base& std::nouppercase | ( | ios_base & | __base | ) | [inline] |
Calls base.unsetf(ios_base::uppercase).
Definition at line 880 of file ios_base.h.
References std::ios_base::unsetf(), and uppercase().
void std::nth_element | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __nth, | |||
_RandomAccessIterator | __last, | |||
_Compare | __comp | |||
) | [inline] |
Sort a sequence just enough to find a particular position using a predicate for comparison.
first | An iterator. | |
nth | Another iterator. | |
last | Another iterator. | |
comp | A comparison functor. |
[first,last) so that *nth
is the same element that would have been in that position had the whole sequence been sorted. The elements either side of *nth
are not completely sorted, but for any iterator in the range
[first,nth) and any iterator in the range
[nth,last) it holds that comp(*j,*i)
is false.
Definition at line 4733 of file stl_algo.h.
References __glibcxx_function_requires, __glibcxx_requires_valid_range, __introselect(), and __lg().
void std::nth_element | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __nth, | |||
_RandomAccessIterator | __last | |||
) | [inline] |
Sort a sequence just enough to find a particular position.
first | An iterator. | |
nth | Another iterator. | |
last | Another iterator. |
[first,last) so that *nth
is the same element that would have been in that position had the whole sequence been sorted. whole sequence been sorted. The elements either side of *nth
are not completely sorted, but for any iterator in the range
[first,nth) and any iterator in the range
[nth,last) it holds that *j<*i
is false.
Definition at line 4695 of file stl_algo.h.
References __glibcxx_function_requires, __glibcxx_requires_valid_range, __introselect(), and __lg().
ios_base& std::oct | ( | ios_base & | __base | ) | [inline] |
Calls base.setf(ios_base::oct, ios_base::basefield).
Definition at line 946 of file ios_base.h.
References std::ios_base::setf().
Referenced by operator<<(), and operator>>().
bitset<_Nb> std::operator & | ( | const bitset< _Nb > & | __x, | |
const bitset< _Nb > & | __y | |||
) | [inline] |
bool std::operator!= | ( | const istream_iterator< _Tp, _CharT, _Traits, _Dist > & | __x, | |
const istream_iterator< _Tp, _CharT, _Traits, _Dist > & | __y | |||
) | [inline] |
Return false if x and y are both end or not end, or x and y are the same.
Definition at line 135 of file stream_iterator.h.
References std::istream_iterator< _Tp, _CharT, _Traits, _Dist >::_M_equal().
bool std::operator!= | ( | const vector< _Tp, _Alloc > & | __x, | |
const vector< _Tp, _Alloc > & | __y | |||
) | [inline] |
bool std::operator!= | ( | const stack< _Tp, _Seq > & | __x, | |
const stack< _Tp, _Seq > & | __y | |||
) | [inline] |
bool std::operator!= | ( | const set< _Key, _Compare, _Alloc > & | __x, | |
const set< _Key, _Compare, _Alloc > & | __y | |||
) | [inline] |
bool std::operator!= | ( | const queue< _Tp, _Seq > & | __x, | |
const queue< _Tp, _Seq > & | __y | |||
) | [inline] |
bool std::operator!= | ( | const pair< _T1, _T2 > & | __x, | |
const pair< _T1, _T2 > & | __y | |||
) | [inline] |
bool std::operator!= | ( | const multiset< _Key, _Compare, _Alloc > & | __x, | |
const multiset< _Key, _Compare, _Alloc > & | __y | |||
) | [inline] |
bool std::operator!= | ( | const multimap< _Key, _Tp, _Compare, _Alloc > & | __x, | |
const multimap< _Key, _Tp, _Compare, _Alloc > & | __y | |||
) | [inline] |
bool std::operator!= | ( | const map< _Key, _Tp, _Compare, _Alloc > & | __x, | |
const map< _Key, _Tp, _Compare, _Alloc > & | __y | |||
) | [inline] |
bool std::operator!= | ( | const list< _Tp, _Alloc > & | __x, | |
const list< _Tp, _Alloc > & | __y | |||
) | [inline] |
bool std::operator!= | ( | const deque< _Tp, _Alloc > & | __x, | |
const deque< _Tp, _Alloc > & | __y | |||
) | [inline] |
bool std::operator!= | ( | const basic_string< _CharT, _Traits, _Alloc > & | __lhs, | |
const _CharT * | __rhs | |||
) | [inline] |
Test difference of string and C string.
lhs | String. | |
rhs | C string. |
Definition at line 2224 of file basic_string.h.
bool std::operator!= | ( | const _CharT * | __lhs, | |
const basic_string< _CharT, _Traits, _Alloc > & | __rhs | |||
) | [inline] |
Test difference of C string and string.
lhs | C string. | |
rhs | String. |
Definition at line 2212 of file basic_string.h.
bool std::operator!= | ( | const basic_string< _CharT, _Traits, _Alloc > & | __lhs, | |
const basic_string< _CharT, _Traits, _Alloc > & | __rhs | |||
) | [inline] |
Test difference of two strings.
lhs | First string. | |
rhs | Second string. |
Definition at line 2200 of file basic_string.h.
bool std::operator!= | ( | const function< _Signature > & | __f, | |
_M_clear_type * | ||||
) | [inline] |
Compares a polymorphic function object wrapper against 0 (the NULL pointer).
false
if the wrapper has no target, true
otherwiseDefinition at line 2102 of file tr1_impl/functional.
basic_string<_CharT, _Traits, _Alloc> std::operator+ | ( | const basic_string< _CharT, _Traits, _Alloc > & | __lhs, | |
_CharT | __rhs | |||
) | [inline] |
Concatenate string and character.
lhs | First string. | |
rhs | Last string. |
Definition at line 2136 of file basic_string.h.
basic_string<_CharT, _Traits, _Alloc> std::operator+ | ( | const basic_string< _CharT, _Traits, _Alloc > & | __lhs, | |
const _CharT * | __rhs | |||
) | [inline] |
Concatenate string and C string.
lhs | First string. | |
rhs | Last string. |
Definition at line 2120 of file basic_string.h.
References std::basic_string< _CharT, _Traits, _Alloc >::append().
basic_string< _CharT, _Traits, _Alloc > std::operator+ | ( | _CharT | __lhs, | |
const basic_string< _CharT, _Traits, _Alloc > & | __rhs | |||
) |
Concatenate character and string.
lhs | First string. | |
rhs | Last string. |
Definition at line 683 of file basic_string.tcc.
References std::basic_string< _CharT, _Traits, _Alloc >::size().
basic_string< _CharT, _Traits, _Alloc > std::operator+ | ( | const _CharT * | __lhs, | |
const basic_string< _CharT, _Traits, _Alloc > & | __rhs | |||
) |
Concatenate C string and string.
lhs | First string. | |
rhs | Last string. |
Definition at line 667 of file basic_string.tcc.
References __glibcxx_requires_string, and std::basic_string< _CharT, _Traits, _Alloc >::size().
basic_string<_CharT, _Traits, _Alloc> std::operator+ | ( | const basic_string< _CharT, _Traits, _Alloc > & | __lhs, | |
const basic_string< _CharT, _Traits, _Alloc > & | __rhs | |||
) |
Concatenate two strings.
lhs | First string. | |
rhs | Last string. |
Definition at line 2083 of file basic_string.h.
References std::basic_string< _CharT, _Traits, _Alloc >::append().
bool std::operator< | ( | const vector< _Tp, _Alloc > & | __x, | |
const vector< _Tp, _Alloc > & | __y | |||
) | [inline] |
Vector ordering relation.
x | A vector. | |
y | A vector of the same type as x. |
<
.See std::lexicographical_compare() for how the determination is made.
Definition at line 1126 of file stl_vector.h.
bool std::operator< | ( | const stack< _Tp, _Seq > & | __x, | |
const stack< _Tp, _Seq > & | __y | |||
) | [inline] |
Stack ordering relation.
x | A stack. | |
y | A stack of the same type as x. |
<
, and std::lexicographical_compare() is usually used to make the determination.
Definition at line 256 of file stl_stack.h.
bool std::operator< | ( | const set< _Key, _Compare, _Alloc > & | __x, | |
const set< _Key, _Compare, _Alloc > & | __y | |||
) | [inline] |
Set ordering relation.
x | A set. | |
y | A set of the same type as x. |
<
.See std::lexicographical_compare() for how the determination is made.
bool std::operator< | ( | const queue< _Tp, _Seq > & | __x, | |
const queue< _Tp, _Seq > & | __y | |||
) | [inline] |
Queue ordering relation.
x | A queue. | |
y | A queue of the same type as x. |
<
, and std::lexicographical_compare() is usually used to make the determination.
Definition at line 291 of file stl_queue.h.
bool std::operator< | ( | const pair< _T1, _T2 > & | __x, | |
const pair< _T1, _T2 > & | __y | |||
) | [inline] |
<http://gcc.gnu.org/onlinedocs/libstdc++/20_util/howto.html#pairlt>
Definition at line 157 of file stl_pair.h.
bool std::operator< | ( | const multiset< _Key, _Compare, _Alloc > & | __x, | |
const multiset< _Key, _Compare, _Alloc > & | __y | |||
) | [inline] |
Multiset ordering relation.
x | A multiset. | |
y | A multiset of the same type as x. |
<
.See std::lexicographical_compare() for how the determination is made.
Definition at line 599 of file stl_multiset.h.
bool std::operator< | ( | const multimap< _Key, _Tp, _Compare, _Alloc > & | __x, | |
const multimap< _Key, _Tp, _Compare, _Alloc > & | __y | |||
) | [inline] |
Multimap ordering relation.
x | A multimap. | |
y | A multimap of the same type as x. |
<
.See std::lexicographical_compare() for how the determination is made.
Definition at line 701 of file stl_multimap.h.
bool std::operator< | ( | const map< _Key, _Tp, _Compare, _Alloc > & | __x, | |
const map< _Key, _Tp, _Compare, _Alloc > & | __y | |||
) | [inline] |
Map ordering relation.
x | A map. | |
y | A map of the same type as x. |
<
.See std::lexicographical_compare() for how the determination is made.
bool std::operator< | ( | const list< _Tp, _Alloc > & | __x, | |
const list< _Tp, _Alloc > & | __y | |||
) | [inline] |
List ordering relation.
x | A list. | |
y | A list of the same type as x. |
<
.See std::lexicographical_compare() for how the determination is made.
Definition at line 1415 of file stl_list.h.
bool std::operator< | ( | const deque< _Tp, _Alloc > & | __x, | |
const deque< _Tp, _Alloc > & | __y | |||
) | [inline] |
Deque ordering relation.
x | A deque. | |
y | A deque of the same type as x. |
<
.See std::lexicographical_compare() for how the determination is made.
Definition at line 1717 of file stl_deque.h.
bool std::operator< | ( | const _CharT * | __lhs, | |
const basic_string< _CharT, _Traits, _Alloc > & | __rhs | |||
) | [inline] |
Test if C string precedes string.
lhs | C string. | |
rhs | String. |
Definition at line 2261 of file basic_string.h.
References std::basic_string< _CharT, _Traits, _Alloc >::compare().
bool std::operator< | ( | const basic_string< _CharT, _Traits, _Alloc > & | __lhs, | |
const _CharT * | __rhs | |||
) | [inline] |
Test if string precedes C string.
lhs | String. | |
rhs | C string. |
Definition at line 2249 of file basic_string.h.
bool std::operator< | ( | const basic_string< _CharT, _Traits, _Alloc > & | __lhs, | |
const basic_string< _CharT, _Traits, _Alloc > & | __rhs | |||
) | [inline] |
Test if string precedes string.
lhs | First string. | |
rhs | Second string. |
Definition at line 2237 of file basic_string.h.
basic_ostream<_CharT, _Traits>& std::operator<< | ( | basic_ostream< _CharT, _Traits > & | __os, | |
const __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base > & | __str | |||
) | [inline] |
Write string to a stream.
os | Output stream. | |
str | String to write out. |
Definition at line 2274 of file vstring.h.
References __ostream_insert().
std::basic_ostream<_CharT, _Traits>& std::operator<< | ( | std::basic_ostream< _CharT, _Traits > & | __os, | |
const bernoulli_distribution & | __x | |||
) |
Inserts a bernoulli_distribution random number distribution __x
into the output stream __os
.
__os | An output stream. | |
__x | A bernoulli_distribution random number distribution. |
__x
inserted or in an error state. Definition at line 828 of file random.tcc.
References std::ios_base::flags(), left(), and scientific().
basic_ostream<_CharT, _Traits>& std::operator<< | ( | basic_ostream< _CharT, _Traits > & | __os, | |
const basic_string< _CharT, _Traits, _Alloc > & | __str | |||
) | [inline] |
Write string to a stream.
os | Output stream. | |
str | String to write out. |
Definition at line 2420 of file basic_string.h.
References __ostream_insert().
basic_ostream<_CharT, _Traits>& std::operator<< | ( | basic_ostream< _CharT, _Traits > & | __out, | |
const _CharT * | __s | |||
) | [inline] |
String inserters.
out | An output stream. | |
s | A character string. |
traits::length(s)
characters starting at s, widened if necessary, followed by any required padding (as determined by [22.2.2.2.2]). out.width(0)
is then called.
Definition at line 495 of file ostream.
References __ostream_insert(), and std::basic_ios< _CharT, _Traits >::setstate().
basic_ostream<_CharT, _Traits>& std::operator<< | ( | basic_ostream< _CharT, _Traits > & | __out, | |
_CharT | __c | |||
) | [inline] |
Character inserters.
out | An output stream. | |
c | A character. |
out.width(0)
is then called.
If c is of type char
and the character type of the stream is not char
, the character is widened before insertion.
Definition at line 453 of file ostream.
References __ostream_insert().
bool std::operator<= | ( | const vector< _Tp, _Alloc > & | __x, | |
const vector< _Tp, _Alloc > & | __y | |||
) | [inline] |
bool std::operator<= | ( | const stack< _Tp, _Seq > & | __x, | |
const stack< _Tp, _Seq > & | __y | |||
) | [inline] |
bool std::operator<= | ( | const set< _Key, _Compare, _Alloc > & | __x, | |
const set< _Key, _Compare, _Alloc > & | __y | |||
) | [inline] |
bool std::operator<= | ( | const queue< _Tp, _Seq > & | __x, | |
const queue< _Tp, _Seq > & | __y | |||
) | [inline] |
bool std::operator<= | ( | const pair< _T1, _T2 > & | __x, | |
const pair< _T1, _T2 > & | __y | |||
) | [inline] |
bool std::operator<= | ( | const multiset< _Key, _Compare, _Alloc > & | __x, | |
const multiset< _Key, _Compare, _Alloc > & | __y | |||
) | [inline] |
bool std::operator<= | ( | const multimap< _Key, _Tp, _Compare, _Alloc > & | __x, | |
const multimap< _Key, _Tp, _Compare, _Alloc > & | __y | |||
) | [inline] |
bool std::operator<= | ( | const map< _Key, _Tp, _Compare, _Alloc > & | __x, | |
const map< _Key, _Tp, _Compare, _Alloc > & | __y | |||
) | [inline] |
bool std::operator<= | ( | const list< _Tp, _Alloc > & | __x, | |
const list< _Tp, _Alloc > & | __y | |||
) | [inline] |
bool std::operator<= | ( | const deque< _Tp, _Alloc > & | __x, | |
const deque< _Tp, _Alloc > & | __y | |||
) | [inline] |
bool std::operator<= | ( | const _CharT * | __lhs, | |
const basic_string< _CharT, _Traits, _Alloc > & | __rhs | |||
) | [inline] |
Test if C string doesn't follow string.
lhs | C string. | |
rhs | String. |
Definition at line 2335 of file basic_string.h.
References std::basic_string< _CharT, _Traits, _Alloc >::compare().
bool std::operator<= | ( | const basic_string< _CharT, _Traits, _Alloc > & | __lhs, | |
const _CharT * | __rhs | |||
) | [inline] |
Test if string doesn't follow C string.
lhs | String. | |
rhs | C string. |
Definition at line 2323 of file basic_string.h.
bool std::operator<= | ( | const basic_string< _CharT, _Traits, _Alloc > & | __lhs, | |
const basic_string< _CharT, _Traits, _Alloc > & | __rhs | |||
) | [inline] |
Test if string doesn't follow string.
lhs | First string. | |
rhs | Second string. |
Definition at line 2311 of file basic_string.h.
bool std::operator== | ( | const istream_iterator< _Tp, _CharT, _Traits, _Dist > & | __x, | |
const istream_iterator< _Tp, _CharT, _Traits, _Dist > & | __y | |||
) | [inline] |
Return true if x and y are both end or not end, or x and y are the same.
Definition at line 128 of file stream_iterator.h.
References std::istream_iterator< _Tp, _CharT, _Traits, _Dist >::_M_equal().
bool std::operator== | ( | const vector< _Tp, _Alloc > & | __x, | |
const vector< _Tp, _Alloc > & | __y | |||
) | [inline] |
Vector equality comparison.
x | A vector. | |
y | A vector of the same type as x. |
Definition at line 1109 of file stl_vector.h.
References std::vector< _Tp, _Alloc >::begin(), std::vector< _Tp, _Alloc >::end(), and std::vector< _Tp, _Alloc >::size().
bool std::operator== | ( | const stack< _Tp, _Seq > & | __x, | |
const stack< _Tp, _Seq > & | __y | |||
) | [inline] |
Stack equality comparison.
x | A stack. | |
y | A stack of the same type as x. |
Definition at line 238 of file stl_stack.h.
References std::stack< _Tp, _Sequence >::c.
bool std::operator== | ( | const set< _Key, _Compare, _Alloc > & | __x, | |
const set< _Key, _Compare, _Alloc > & | __y | |||
) | [inline] |
Set equality comparison.
x | A set. | |
y | A set of the same type as x. |
Definition at line 595 of file stl_set.h.
References std::set< _Key, _Compare, _Alloc >::_M_t.
bool std::operator== | ( | const queue< _Tp, _Seq > & | __x, | |
const queue< _Tp, _Seq > & | __y | |||
) | [inline] |
Queue equality comparison.
x | A queue. | |
y | A queue of the same type as x. |
Definition at line 273 of file stl_queue.h.
References std::queue< _Tp, _Sequence >::c.
bool std::operator== | ( | const pair< _T1, _T2 > & | __x, | |
const pair< _T1, _T2 > & | __y | |||
) | [inline] |
Two pairs of the same type are equal iff their members are equal.
Definition at line 151 of file stl_pair.h.
References std::pair< _T1, _T2 >::first, and std::pair< _T1, _T2 >::second.
bool std::operator== | ( | const multiset< _Key, _Compare, _Alloc > & | __x, | |
const multiset< _Key, _Compare, _Alloc > & | __y | |||
) | [inline] |
Multiset equality comparison.
x | A multiset. | |
y | A multiset of the same type as x. |
Definition at line 582 of file stl_multiset.h.
References std::multiset< _Key, _Compare, _Alloc >::_M_t.
bool std::operator== | ( | const multimap< _Key, _Tp, _Compare, _Alloc > & | __x, | |
const multimap< _Key, _Tp, _Compare, _Alloc > & | __y | |||
) | [inline] |
Multimap equality comparison.
x | A multimap. | |
y | A multimap of the same type as x. |
Definition at line 684 of file stl_multimap.h.
References std::multimap< _Key, _Tp, _Compare, _Alloc >::_M_t.
bool std::operator== | ( | const map< _Key, _Tp, _Compare, _Alloc > & | __x, | |
const map< _Key, _Tp, _Compare, _Alloc > & | __y | |||
) | [inline] |
Map equality comparison.
x | A map. | |
y | A map of the same type as x. |
Definition at line 755 of file stl_map.h.
References std::map< _Key, _Tp, _Compare, _Alloc >::_M_t.
bool std::operator== | ( | const list< _Tp, _Alloc > & | __x, | |
const list< _Tp, _Alloc > & | __y | |||
) | [inline] |
List equality comparison.
x | A list. | |
y | A list of the same type as x. |
Definition at line 1386 of file stl_list.h.
References std::list< _Tp, _Alloc >::begin(), and std::list< _Tp, _Alloc >::end().
bool std::operator== | ( | const reverse_iterator< _Iterator > & | __x, | |
const reverse_iterator< _Iterator > & | __y | |||
) | [inline] |
x | A reverse_iterator. | |
y | A reverse_iterator. |
Definition at line 283 of file stl_iterator.h.
References std::reverse_iterator< _Iterator >::base().
bool std::operator== | ( | const deque< _Tp, _Alloc > & | __x, | |
const deque< _Tp, _Alloc > & | __y | |||
) | [inline] |
Deque equality comparison.
x | A deque. | |
y | A deque of the same type as x. |
Definition at line 1699 of file stl_deque.h.
References std::deque< _Tp, _Alloc >::begin(), std::deque< _Tp, _Alloc >::end(), and std::deque< _Tp, _Alloc >::size().
bool std::operator== | ( | const fpos< _StateT > & | __lhs, | |
const fpos< _StateT > & | __rhs | |||
) | [inline] |
bool std::operator== | ( | const basic_string< _CharT, _Traits, _Alloc > & | __lhs, | |
const _CharT * | __rhs | |||
) | [inline] |
Test equivalence of string and C string.
lhs | String. | |
rhs | C string. |
Definition at line 2187 of file basic_string.h.
References std::basic_string< _CharT, _Traits, _Alloc >::compare().
bool std::operator== | ( | const _CharT * | __lhs, | |
const basic_string< _CharT, _Traits, _Alloc > & | __rhs | |||
) | [inline] |
Test equivalence of C string and string.
lhs | C string. | |
rhs | String. |
Definition at line 2175 of file basic_string.h.
References std::basic_string< _CharT, _Traits, _Alloc >::compare().
bool std::operator== | ( | const basic_string< _CharT, _Traits, _Alloc > & | __lhs, | |
const basic_string< _CharT, _Traits, _Alloc > & | __rhs | |||
) | [inline] |
Test equivalence of two strings.
lhs | First string. | |
rhs | Second string. |
Definition at line 2154 of file basic_string.h.
References std::basic_string< _CharT, _Traits, _Alloc >::compare().
bool std::operator== | ( | const function< _Signature > & | __f, | |
_M_clear_type * | ||||
) | [inline] |
Compares a polymorphic function object wrapper against 0 (the NULL pointer).
true
if the wrapper has no target, false
otherwiseDefinition at line 2084 of file tr1_impl/functional.
bool std::operator> | ( | const vector< _Tp, _Alloc > & | __x, | |
const vector< _Tp, _Alloc > & | __y | |||
) | [inline] |
bool std::operator> | ( | const stack< _Tp, _Seq > & | __x, | |
const stack< _Tp, _Seq > & | __y | |||
) | [inline] |
bool std::operator> | ( | const set< _Key, _Compare, _Alloc > & | __x, | |
const set< _Key, _Compare, _Alloc > & | __y | |||
) | [inline] |
bool std::operator> | ( | const queue< _Tp, _Seq > & | __x, | |
const queue< _Tp, _Seq > & | __y | |||
) | [inline] |
bool std::operator> | ( | const pair< _T1, _T2 > & | __x, | |
const pair< _T1, _T2 > & | __y | |||
) | [inline] |
bool std::operator> | ( | const multiset< _Key, _Compare, _Alloc > & | __x, | |
const multiset< _Key, _Compare, _Alloc > & | __y | |||
) | [inline] |
bool std::operator> | ( | const multimap< _Key, _Tp, _Compare, _Alloc > & | __x, | |
const multimap< _Key, _Tp, _Compare, _Alloc > & | __y | |||
) | [inline] |
bool std::operator> | ( | const map< _Key, _Tp, _Compare, _Alloc > & | __x, | |
const map< _Key, _Tp, _Compare, _Alloc > & | __y | |||
) | [inline] |
bool std::operator> | ( | const list< _Tp, _Alloc > & | __x, | |
const list< _Tp, _Alloc > & | __y | |||
) | [inline] |
bool std::operator> | ( | const deque< _Tp, _Alloc > & | __x, | |
const deque< _Tp, _Alloc > & | __y | |||
) | [inline] |
bool std::operator> | ( | const _CharT * | __lhs, | |
const basic_string< _CharT, _Traits, _Alloc > & | __rhs | |||
) | [inline] |
Test if C string follows string.
lhs | C string. | |
rhs | String. |
Definition at line 2298 of file basic_string.h.
References std::basic_string< _CharT, _Traits, _Alloc >::compare().
bool std::operator> | ( | const basic_string< _CharT, _Traits, _Alloc > & | __lhs, | |
const _CharT * | __rhs | |||
) | [inline] |
Test if string follows C string.
lhs | String. | |
rhs | C string. |
Definition at line 2286 of file basic_string.h.
References std::basic_string< _CharT, _Traits, _Alloc >::compare().
bool std::operator> | ( | const basic_string< _CharT, _Traits, _Alloc > & | __lhs, | |
const basic_string< _CharT, _Traits, _Alloc > & | __rhs | |||
) | [inline] |
Test if string follows string.
lhs | First string. | |
rhs | Second string. |
Definition at line 2274 of file basic_string.h.
References std::basic_string< _CharT, _Traits, _Alloc >::compare().
bool std::operator>= | ( | const vector< _Tp, _Alloc > & | __x, | |
const vector< _Tp, _Alloc > & | __y | |||
) | [inline] |
bool std::operator>= | ( | const stack< _Tp, _Seq > & | __x, | |
const stack< _Tp, _Seq > & | __y | |||
) | [inline] |
bool std::operator>= | ( | const set< _Key, _Compare, _Alloc > & | __x, | |
const set< _Key, _Compare, _Alloc > & | __y | |||
) | [inline] |
bool std::operator>= | ( | const queue< _Tp, _Seq > & | __x, | |
const queue< _Tp, _Seq > & | __y | |||
) | [inline] |
bool std::operator>= | ( | const pair< _T1, _T2 > & | __x, | |
const pair< _T1, _T2 > & | __y | |||
) | [inline] |
bool std::operator>= | ( | const multiset< _Key, _Compare, _Alloc > & | __x, | |
const multiset< _Key, _Compare, _Alloc > & | __y | |||
) | [inline] |
bool std::operator>= | ( | const multimap< _Key, _Tp, _Compare, _Alloc > & | __x, | |
const multimap< _Key, _Tp, _Compare, _Alloc > & | __y | |||
) | [inline] |
bool std::operator>= | ( | const map< _Key, _Tp, _Compare, _Alloc > & | __x, | |
const map< _Key, _Tp, _Compare, _Alloc > & | __y | |||
) | [inline] |
bool std::operator>= | ( | const list< _Tp, _Alloc > & | __x, | |
const list< _Tp, _Alloc > & | __y | |||
) | [inline] |
bool std::operator>= | ( | const deque< _Tp, _Alloc > & | __x, | |
const deque< _Tp, _Alloc > & | __y | |||
) | [inline] |
bool std::operator>= | ( | const _CharT * | __lhs, | |
const basic_string< _CharT, _Traits, _Alloc > & | __rhs | |||
) | [inline] |
Test if C string doesn't precede string.
lhs | C string. | |
rhs | String. |
Definition at line 2372 of file basic_string.h.
References std::basic_string< _CharT, _Traits, _Alloc >::compare().
bool std::operator>= | ( | const basic_string< _CharT, _Traits, _Alloc > & | __lhs, | |
const _CharT * | __rhs | |||
) | [inline] |
Test if string doesn't precede C string.
lhs | String. | |
rhs | C string. |
Definition at line 2360 of file basic_string.h.
References std::basic_string< _CharT, _Traits, _Alloc >::compare().
bool std::operator>= | ( | const basic_string< _CharT, _Traits, _Alloc > & | __lhs, | |
const basic_string< _CharT, _Traits, _Alloc > & | __rhs | |||
) | [inline] |
Test if string doesn't precede string.
lhs | First string. | |
rhs | Second string. |
Definition at line 2348 of file basic_string.h.
References std::basic_string< _CharT, _Traits, _Alloc >::compare().
basic_istream< _CharT, _Traits > & std::operator>> | ( | basic_istream< _CharT, _Traits > & | __is, | |
__gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base > & | __str | |||
) |
Read stream into a string.
is | Input stream. | |
str | Buffer to store into. |
Definition at line 552 of file vstring.tcc.
basic_istream< _CharT, _Traits > & std::operator>> | ( | basic_istream< _CharT, _Traits > & | __is, | |
basic_string< _CharT, _Traits, _Alloc > & | __str | |||
) |
Read stream into a string.
is | Input stream. | |
str | Buffer to store into. |
Definition at line 971 of file basic_string.tcc.
References std::basic_ios< _CharT, _Traits >::_M_setstate(), std::basic_string< _CharT, _Traits, _Alloc >::append(), std::basic_string< _CharT, _Traits, _Alloc >::erase(), std::ios_base::getloc(), std::basic_string< _CharT, _Traits, _Alloc >::max_size(), std::basic_ios< _CharT, _Traits >::rdbuf(), std::basic_ios< _CharT, _Traits >::setstate(), and std::ios_base::width().
basic_istream< _CharT, _Traits > & std::operator>> | ( | basic_istream< _CharT, _Traits > & | __in, | |
_CharT * | __s | |||
) |
Character string extractors.
in | An input stream. | |
s | A pointer to a character array. |
n
characters and stores them into the array starting at s. n
is defined as:
width()
is greater than zero, n
is width()n
is "the number of elements of the largest array of char_type
that can store a terminating eos
." [27.6.1.2.3]/6Characters are extracted and stored until one of the following happens:
n-1
characters are storedcharT()
)
width(0)
is then called for the input stream.
If no characters are extracted, sets failbit.
Definition at line 890 of file istream.tcc.
References std::basic_ios< _CharT, _Traits >::_M_setstate(), std::ios_base::badbit, std::ios_base::eofbit, std::ios_base::failbit, std::ios_base::getloc(), std::ios_base::goodbit, std::basic_ios< _CharT, _Traits >::rdbuf(), std::basic_ios< _CharT, _Traits >::setstate(), std::ctype_base::space, and std::ios_base::width().
basic_istream< _CharT, _Traits > & std::operator>> | ( | basic_istream< _CharT, _Traits > & | __in, | |
_CharT & | __c | |||
) |
Character extractors.
in | An input stream. | |
c | A character reference. |
Definition at line 858 of file istream.tcc.
References std::basic_ios< _CharT, _Traits >::_M_setstate(), std::ios_base::badbit, std::ios_base::eofbit, std::ios_base::failbit, std::ios_base::goodbit, std::basic_ios< _CharT, _Traits >::rdbuf(), and std::basic_ios< _CharT, _Traits >::setstate().
std::basic_istream<_CharT, _Traits>& std::operator>> | ( | std::basic_istream< _CharT, _Traits > & | __is, | |
bitset< _Nb > & | __x | |||
) |
Global I/O operators for bitsets.
Direct I/O between streams and bitsets is supported. Output is straightforward. Input will skip whitespace, only accept '0' and '1' characters, and will only extract as many digits as the bitset will hold.
Definition at line 1242 of file bitset.
References std::bitset< _Nb >::_M_copy_from_string(), std::basic_ios< _CharT, _Traits >::_M_setstate(), std::basic_string< _CharT, _Traits, _Alloc >::empty(), std::basic_string< _CharT, _Traits, _Alloc >::push_back(), std::basic_ios< _CharT, _Traits >::rdbuf(), std::basic_string< _CharT, _Traits, _Alloc >::reserve(), std::basic_ios< _CharT, _Traits >::setstate(), and std::basic_ios< _CharT, _Traits >::widen().
bitset<_Nb> std::operator^ | ( | const bitset< _Nb > & | __x, | |
const bitset< _Nb > & | __y | |||
) | [inline] |
bitset<_Nb> std::operator| | ( | const bitset< _Nb > & | __x, | |
const bitset< _Nb > & | __y | |||
) | [inline] |
void std::partial_sort | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __middle, | |||
_RandomAccessIterator | __last, | |||
_Compare | __comp | |||
) | [inline] |
Sort the smallest elements of a sequence using a predicate for comparison.
first | An iterator. | |
middle | Another iterator. | |
last | Another iterator. | |
comp | A comparison functor. |
(middle-first) elements in the range
[first,last) and moves them to the range
[first,middle). The order of the remaining elements in the range
[middle,last) is undefined. After the sort if i
and are iterators in the range
[first,middle) such that precedes and is an iterator in the range
[middle,last) then *comp
(j,*i) and comp(*k,*i)
are both false.
Definition at line 4658 of file stl_algo.h.
References __glibcxx_function_requires, __glibcxx_requires_valid_range, and __heap_select().
void std::partial_sort | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __middle, | |||
_RandomAccessIterator | __last | |||
) | [inline] |
Sort the smallest elements of a sequence.
first | An iterator. | |
middle | Another iterator. | |
last | Another iterator. |
(middle-first) elements in the range
[first,last) and moves them to the range
[first,middle). The order of the remaining elements in the range
[middle,last) is undefined. After the sort if i
and are iterators in the range
[first,middle) such that precedes and is an iterator in the range
[middle,last) then *j<*i
and *k<*i
are both false.
Definition at line 4620 of file stl_algo.h.
References __glibcxx_function_requires, __glibcxx_requires_valid_range, and __heap_select().
_RandomAccessIterator std::partial_sort_copy | ( | _InputIterator | __first, | |
_InputIterator | __last, | |||
_RandomAccessIterator | __result_first, | |||
_RandomAccessIterator | __result_last, | |||
_Compare | __comp | |||
) |
Copy the smallest elements of a sequence using a predicate for comparison.
first | An input iterator. | |
last | Another input iterator. | |
result_first | A random-access iterator. | |
result_last | Another random-access iterator. | |
comp | A comparison functor. |
[first,last) to the range beginning at result_first
, where the number of elements to be copied, N
, is the smaller of
(last-first) and
(result_last-result_first). After the sort if i
and are iterators in the range
[result_first,result_first+N) such that precedes then comp(*j,*i)
is false. The value returned is result_first+N
.
Definition at line 1662 of file stl_algo.h.
References __adjust_heap(), __glibcxx_function_requires, and __glibcxx_requires_valid_range.
_RandomAccessIterator std::partial_sort_copy | ( | _InputIterator | __first, | |
_InputIterator | __last, | |||
_RandomAccessIterator | __result_first, | |||
_RandomAccessIterator | __result_last | |||
) |
Copy the smallest elements of a sequence.
first | An iterator. | |
last | Another iterator. | |
result_first | A random-access iterator. | |
result_last | Another random-access iterator. |
[first,last) to the range beginning at result_first
, where the number of elements to be copied, N
, is the smaller of
(last-first) and
(result_last-result_first). After the sort if i
and are iterators in the range
[result_first,result_first+N) such that precedes then *j<*i
is false. The value returned is result_first+N
.
Definition at line 1597 of file stl_algo.h.
References __adjust_heap(), __glibcxx_function_requires, and __glibcxx_requires_valid_range.
_OutputIterator std::partial_sum | ( | _InputIterator | __first, | |
_InputIterator | __last, | |||
_OutputIterator | __result, | |||
_BinaryOperation | __binary_op | |||
) |
Return list of partial sums.
Accumulates the values in the range [first,last) using operator+(). As each successive input value is added into the total, that partial sum is written to result. Therefore, the first value in result is the first value of the input, the second value in result is the sum of the first and second input values, and so on.
first | Start of input range. | |
last | End of input range. | |
result | Output to write sums to. |
Definition at line 240 of file stl_numeric.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
_OutputIterator std::partial_sum | ( | _InputIterator | __first, | |
_InputIterator | __last, | |||
_OutputIterator | __result | |||
) |
Return list of partial sums.
Accumulates the values in the range [first,last) using operator+(). As each successive input value is added into the total, that partial sum is written to result. Therefore, the first value in result is the first value of the input, the second value in result is the sum of the first and second input values, and so on.
first | Start of input range. | |
last | End of input range. | |
result | Output to write sums to. |
Definition at line 200 of file stl_numeric.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
_ForwardIterator std::partition | ( | _ForwardIterator | __first, | |
_ForwardIterator | __last, | |||
_Predicate | __pred | |||
) | [inline] |
Move elements for which a predicate is true to the beginning of a sequence.
first | A forward iterator. | |
last | A forward iterator. | |
pred | A predicate functor. |
middle
such that pred(i)
is true for each iterator i
in the range
[first,middle) and false for each i
in the range
[middle,last).pred
must not modify its operand. partition()
does not preserve the relative ordering of elements in each group, use stable_partition()
if this is needed.
Definition at line 4587 of file stl_algo.h.
References __glibcxx_function_requires, __glibcxx_requires_valid_range, __iterator_category(), and __partition().
void std::pop_heap | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __last, | |||
_Compare | __comp | |||
) | [inline] |
Pop an element off a heap using comparison functor.
first | Start of heap. | |
last | End of heap. | |
comp | Comparison functor to use. |
Definition at line 349 of file stl_heap.h.
References __glibcxx_function_requires, __glibcxx_requires_heap_pred, __glibcxx_requires_valid_range, and __pop_heap().
void std::pop_heap | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __last | |||
) | [inline] |
Pop an element off a heap.
first | Start of heap. | |
last | End of heap. |
Definition at line 276 of file stl_heap.h.
References __glibcxx_function_requires, __glibcxx_requires_heap, __glibcxx_requires_valid_range, and __pop_heap().
bool std::prev_permutation | ( | _BidirectionalIterator | __first, | |
_BidirectionalIterator | __last, | |||
_Compare | __comp | |||
) |
Permute range into the previous "dictionary" ordering using comparison functor.
first | Start of range. | |
last | End of range. | |
comp | A comparison functor. |
Definition at line 3384 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
bool std::prev_permutation | ( | _BidirectionalIterator | __first, | |
_BidirectionalIterator | __last | |||
) |
Permute range into the previous "dictionary" ordering.
first | Start of range. | |
last | End of range. |
Definition at line 3328 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
void std::push_heap | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __last, | |||
_Compare | __comp | |||
) | [inline] |
Push an element onto a heap using comparison functor.
first | Start of heap. | |
last | End of heap + element. | |
comp | Comparison functor. |
Definition at line 203 of file stl_heap.h.
References __glibcxx_function_requires, __glibcxx_requires_heap_pred, __glibcxx_requires_valid_range, __push_heap(), and _GLIBCXX_MOVE.
void std::push_heap | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __last | |||
) | [inline] |
Push an element onto a heap.
first | Start of heap. | |
last | End of heap + element. |
Definition at line 154 of file stl_heap.h.
References __glibcxx_function_requires, __glibcxx_requires_heap, __glibcxx_requires_valid_range, __push_heap(), and _GLIBCXX_MOVE.
void std::random_shuffle | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __last, | |||
_RandomNumberGenerator & | __rand | |||
) |
Shuffle the elements of a sequence using a random number generator.
first | A forward iterator. | |
last | A forward iterator. | |
rand | The RNG functor or function. |
[first,last) using rand
to provide a random distribution. Calling rand(N)
for a positive integer N
should return a randomly chosen integer from the range [0,N).
Definition at line 4556 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
void std::random_shuffle | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __last | |||
) | [inline] |
Randomly shuffle the elements of a sequence.
first | A forward iterator. | |
last | A forward iterator. |
[first,last) using a random distribution, so that every possible ordering of the sequence is equally likely.
Definition at line 4529 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
_ForwardIterator std::remove | ( | _ForwardIterator | __first, | |
_ForwardIterator | __last, | |||
const _Tp & | __value | |||
) |
Remove elements from a sequence.
first | An input iterator. | |
last | An input iterator. | |
value | The value to be removed. |
value
are removed from the range
[first,last).remove() is stable, so the relative order of elements that are not removed is unchanged.
Elements between the end of the resulting sequence and last
are still present, but their value is unspecified.
Definition at line 761 of file stl_algo.h.
References __glibcxx_function_requires, __glibcxx_requires_valid_range, and _GLIBCXX_MOVE.
_OutputIterator std::remove_copy | ( | _InputIterator | __first, | |
_InputIterator | __last, | |||
_OutputIterator | __result, | |||
const _Tp & | __value | |||
) |
Copy a sequence, removing elements of a given value.
first | An input iterator. | |
last | An input iterator. | |
result | An output iterator. | |
value | The value to be removed. |
[first,last) not equal to value
to the range beginning at result
. remove_copy() is stable, so the relative order of elements that are copied is unchanged.
Definition at line 686 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
_OutputIterator std::remove_copy_if | ( | _InputIterator | __first, | |
_InputIterator | __last, | |||
_OutputIterator | __result, | |||
_Predicate | __pred | |||
) |
Copy a sequence, removing elements for which a predicate is true.
first | An input iterator. | |
last | An input iterator. | |
result | An output iterator. | |
pred | A predicate. |
[first,last) for which pred
returns true to the range beginning at result
.remove_copy_if() is stable, so the relative order of elements that are copied is unchanged.
Definition at line 723 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
_ForwardIterator std::remove_if | ( | _ForwardIterator | __first, | |
_ForwardIterator | __last, | |||
_Predicate | __pred | |||
) |
Remove elements from a sequence using a predicate.
first | A forward iterator. | |
last | A forward iterator. | |
pred | A predicate. |
pred
returns true are removed from the range
[first,last).remove_if() is stable, so the relative order of elements that are not removed is unchanged.
Elements between the end of the resulting sequence and last
are still present, but their value is unspecified.
Definition at line 803 of file stl_algo.h.
References __glibcxx_function_requires, __glibcxx_requires_valid_range, and _GLIBCXX_MOVE.
void std::replace | ( | _ForwardIterator | __first, | |
_ForwardIterator | __last, | |||
const _Tp & | __old_value, | |||
const _Tp & | __new_value | |||
) |
Replace each occurrence of one value in a sequence with another value.
first | A forward iterator. | |
last | A forward iterator. | |
old_value | The value to be replaced. | |
new_value | The replacement value. |
i
in the range
[first,last) if *i
== old_value
then the assignment *i
= new_value
is performed.
Definition at line 4336 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
_OutputIterator std::replace_copy | ( | _InputIterator | __first, | |
_InputIterator | __last, | |||
_OutputIterator | __result, | |||
const _Tp & | __old_value, | |||
const _Tp & | __new_value | |||
) |
Copy a sequence, replacing each element of one value with another value.
first | An input iterator. | |
last | An input iterator. | |
result | An output iterator. | |
old_value | The value to be replaced. | |
new_value | The replacement value. |
result+
(last-first).
[first,last) to the output range
[result,result+(last-first)) replacing elements equal to old_value
with new_value
.
Definition at line 3444 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
_OutputIterator std::replace_copy_if | ( | _InputIterator | __first, | |
_InputIterator | __last, | |||
_OutputIterator | __result, | |||
_Predicate | __pred, | |||
const _Tp & | __new_value | |||
) |
Copy a sequence, replacing each value for which a predicate returns true with another value.
first | An input iterator. | |
last | An input iterator. | |
result | An output iterator. | |
pred | A predicate. | |
new_value | The replacement value. |
result+
(last-first).
[first,last) to the range
[result,result+(last-first)) replacing elements for which pred
returns true with new_value
.
Definition at line 3481 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
void std::replace_if | ( | _ForwardIterator | __first, | |
_ForwardIterator | __last, | |||
_Predicate | __pred, | |||
const _Tp & | __new_value | |||
) |
Replace each value in a sequence for which a predicate returns true with another value.
first | A forward iterator. | |
last | A forward iterator. | |
pred | A predicate. | |
new_value | The replacement value. |
i
in the range
[first,last) if pred(*i)
is true then the assignment *i
= new_value
is performed.
Definition at line 4367 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
_Resetiosflags std::resetiosflags | ( | ios_base::fmtflags | __mask | ) | [inline] |
Manipulator for setf
.
mask | A format flags mask. |
Definition at line 64 of file iomanip.
References std::_Resetiosflags::_M_mask.
void std::return_temporary_buffer | ( | _Tp * | __p | ) | [inline] |
The companion to get_temporary_buffer().
p | A buffer previously allocated by get_temporary_buffer. |
Definition at line 117 of file stl_tempbuf.h.
Referenced by std::_Temporary_buffer< _ForwardIterator, _Tp >::_Temporary_buffer(), and std::_Temporary_buffer< _ForwardIterator, _Tp >::~_Temporary_buffer().
void std::reverse | ( | _BidirectionalIterator | __first, | |
_BidirectionalIterator | __last | |||
) | [inline] |
Reverse a sequence.
first | A bidirectional iterator. | |
last | A bidirectional iterator. |
[first,last), so that the first element becomes the last etc. For every i
such that 0<=i<=
(last-first)/2), reverse()
swaps *
(first+i) and *
(last-(i+1))
Definition at line 1108 of file stl_algo.h.
References __glibcxx_function_requires, __glibcxx_requires_valid_range, __iterator_category(), and __reverse().
_OutputIterator std::reverse_copy | ( | _BidirectionalIterator | __first, | |
_BidirectionalIterator | __last, | |||
_OutputIterator | __result | |||
) |
Copy a sequence, reversing its elements.
first | A bidirectional iterator. | |
last | A bidirectional iterator. | |
result | An output iterator. |
[first,last) to the range
[result,result+(last-first)) such that the order of the elements is reversed. For every i
such that 0<=i<=
(last-first), reverse_copy()
performs the assignment *
(result+(last-first)-i) = *(first+i). The ranges
[first,last) and
[result,result+(last-first)) must not overlap.
Definition at line 1134 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
ios_base& std::right | ( | ios_base & | __base | ) | [inline] |
Calls base.setf(ios_base::right, ios_base::adjustfield).
Definition at line 921 of file ios_base.h.
References std::ios_base::setf().
Referenced by __gnu_parallel::parallel_partition().
void std::rotate | ( | _ForwardIterator | __first, | |
_ForwardIterator | __middle, | |||
_ForwardIterator | __last | |||
) | [inline] |
Rotate the elements of a sequence.
first | A forward iterator. | |
middle | A forward iterator. | |
last | A forward iterator. |
[first,last) by
(middle-first) positions so that the element at middle
is moved to first
, the element at middle+1
is moved to +1 and so on for each element in the range
[first,last).
This effectively swaps the ranges [first,middle) and
[middle,last).
Performs *
(first+(n+(last-middle))%(last-first))=*(first+n) for each n
in the range [0,last-first).
Definition at line 1326 of file stl_algo.h.
References __glibcxx_function_requires, __glibcxx_requires_valid_range, and __rotate().
_OutputIterator std::rotate_copy | ( | _ForwardIterator | __first, | |
_ForwardIterator | __middle, | |||
_ForwardIterator | __last, | |||
_OutputIterator | __result | |||
) |
Copy a sequence, rotating its elements.
first | A forward iterator. | |
middle | A forward iterator. | |
last | A forward iterator. | |
result | An output iterator. |
[first,last) to the range beginning at
(middle-first) positions so that the element at middle
is moved to result
, the element at middle+1
is moved to
+1 and so on for each element in the range [first,last).
*
(result+(n+(last-middle))%(last-first))=*(first+n) for each n
in the range
[0,last-first).
Definition at line 1359 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
ios_base& std::scientific | ( | ios_base & | __base | ) | [inline] |
Calls base.setf(ios_base::scientific, ios_base::floatfield).
Definition at line 963 of file ios_base.h.
References std::ios_base::setf().
Referenced by operator<<().
_ForwardIterator1 std::search | ( | _ForwardIterator1 | __first1, | |
_ForwardIterator1 | __last1, | |||
_ForwardIterator2 | __first2, | |||
_ForwardIterator2 | __last2, | |||
_BinaryPredicate | __predicate | |||
) |
Search a sequence for a matching sub-sequence using a predicate.
first1 | A forward iterator. | |
last1 | A forward iterator. | |
first2 | A forward iterator. | |
last2 | A forward iterator. | |
predicate | A binary predicate. |
i
in the range
[first1,last1-(last2-first2)) such that predicate
(*(i+N),*(first2+N)) is true for each N
in the range
[0,last2-first2), or last1
if no such iterator exists.
[first1,last1) for a sub-sequence that compares equal value-by-value with the sequence given by
[first2,last2), using predicate
to determine equality, and returns an iterator to the first element of the sub-sequence, or last1
if no such iterator exists.
Definition at line 4121 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
_ForwardIterator1 std::search | ( | _ForwardIterator1 | __first1, | |
_ForwardIterator1 | __last1, | |||
_ForwardIterator2 | __first2, | |||
_ForwardIterator2 | __last2 | |||
) |
Search a sequence for a matching sub-sequence.
first1 | A forward iterator. | |
last1 | A forward iterator. | |
first2 | A forward iterator. | |
last2 | A forward iterator. |
i
in the range
[first1,last1-(last2-first2)) such that *
(i+N) == *
(first2+N) for each N
in the range
[0,last2-first2), or last1
if no such iterator exists.
[first1,last1) for a sub-sequence that compares equal value-by-value with the sequence given by
[first2,last2) and returns an iterator to the first element of the sub-sequence, or last1
if the sub-sequence is not found.
Because the sub-sequence must lie completely within the range [first1,last1) it must start at a position less than
last1-
(last2-first2) where last2-first2
is the length of the sub-sequence. This means that the returned iterator i
will be in the range [first1,last1-(last2-first2))
Definition at line 4050 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
_ForwardIterator std::search_n | ( | _ForwardIterator | __first, | |
_ForwardIterator | __last, | |||
_Integer | __count, | |||
const _Tp & | __val, | |||
_BinaryPredicate | __binary_pred | |||
) |
Search a sequence for a number of consecutive values using a predicate.
first | A forward iterator. | |
last | A forward iterator. | |
count | The number of consecutive values. | |
val | The value to find. | |
binary_pred | A binary predicate. |
i
in the range
[first,last-count) such that binary_pred
(*(i+N),val) is true for each N
in the range
[0,count), or last
if no such iterator exists.
[first,last) for count
consecutive elements for which the predicate returns true.
Definition at line 4229 of file stl_algo.h.
References __glibcxx_function_requires, __glibcxx_requires_valid_range, __iterator_category(), and __search_n().
_ForwardIterator std::search_n | ( | _ForwardIterator | __first, | |
_ForwardIterator | __last, | |||
_Integer | __count, | |||
const _Tp & | __val | |||
) |
Search a sequence for a number of consecutive values.
first | A forward iterator. | |
last | A forward iterator. | |
count | The number of consecutive values. | |
val | The value to find. |
i
in the range
[first,last-count) such that *
(i+N) == val
for each N
in the range
[0,count), or last
if no such iterator exists.
[first,last) for count
consecutive elements equal to val
.
Definition at line 4193 of file stl_algo.h.
References __glibcxx_function_requires, __glibcxx_requires_valid_range, __iterator_category(), and __search_n().
new_handler std::set_new_handler | ( | new_handler | ) | throw () |
previous handler.
terminate_handler std::set_terminate | ( | terminate_handler | ) | throw () |
Takes a new handler function as an argument, returns the old function.
unexpected_handler std::set_unexpected | ( | unexpected_handler | ) | throw () |
Takes a new handler function as an argument, returns the old function.
_Setbase std::setbase | ( | int | __base | ) | [inline] |
Manipulator for setf
.
base | A numeric base. |
ios_base::basefield
flags to oct
, dec
, or hex
when base is 8, 10, or 16, accordingly, and to 0 if base is any other value.
Definition at line 133 of file iomanip.
References std::_Setbase::_M_base.
_Setfill<_CharT> std::setfill | ( | _CharT | __c | ) | [inline] |
Manipulator for fill
.
c | The new fill character. |
fill(c)
for that object.
Definition at line 175 of file iomanip.
References std::_Setfill< _CharT >::_M_c.
_Setiosflags std::setiosflags | ( | ios_base::fmtflags | __mask | ) | [inline] |
Manipulator for setf
.
mask | A format flags mask. |
Definition at line 98 of file iomanip.
References std::_Setiosflags::_M_mask.
_Setprecision std::setprecision | ( | int | __n | ) | [inline] |
Manipulator for precision
.
n | The new precision. |
precision(n)
for that object.
Definition at line 209 of file iomanip.
References std::_Setprecision::_M_n.
_Setw std::setw | ( | int | __n | ) | [inline] |
Manipulator for width
.
n | The new width. |
width(n)
for that object.
Definition at line 243 of file iomanip.
References std::_Setw::_M_n.
ios_base& std::showbase | ( | ios_base & | __base | ) | [inline] |
Calls base.setf(ios_base::showbase).
Definition at line 808 of file ios_base.h.
References std::ios_base::setf().
Referenced by noshowbase().
ios_base& std::showpoint | ( | ios_base & | __base | ) | [inline] |
Calls base.setf(ios_base::showpoint).
Definition at line 824 of file ios_base.h.
References std::ios_base::setf().
Referenced by noshowpoint().
ios_base& std::showpos | ( | ios_base & | __base | ) | [inline] |
Calls base.setf(ios_base::showpos).
Definition at line 840 of file ios_base.h.
References std::ios_base::setf().
Referenced by noshowpos().
ios_base& std::skipws | ( | ios_base & | __base | ) | [inline] |
Calls base.setf(ios_base::skipws).
Definition at line 856 of file ios_base.h.
References std::ios_base::setf().
Referenced by noskipws(), operator>>(), and std::basic_istream< _CharT, _Traits >::sentry::sentry().
void std::sort | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __last, | |||
_Compare | __comp | |||
) | [inline] |
Sort the elements of a sequence using a predicate for comparison.
first | An iterator. | |
last | Another iterator. | |
comp | A comparison functor. |
[first,last) in ascending order, such that comp
(*(i+1),*i) is false for every iterator i
in the range
[first,last-1).
The relative ordering of equivalent elements is not preserved, use stable_sort()
if this is needed.
Definition at line 4805 of file stl_algo.h.
References __final_insertion_sort(), __glibcxx_function_requires, __glibcxx_requires_valid_range, __introsort_loop(), and __lg().
void std::sort | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __last | |||
) | [inline] |
Sort the elements of a sequence.
first | An iterator. | |
last | Another iterator. |
[first,last) in ascending order, such that *
(i+1)<*i is false for each iterator i
in the range
[first,last-1).
The relative ordering of equivalent elements is not preserved, use stable_sort()
if this is needed.
Definition at line 4770 of file stl_algo.h.
References __final_insertion_sort(), __glibcxx_function_requires, __glibcxx_requires_valid_range, __introsort_loop(), and __lg().
void std::sort_heap | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __last, | |||
_Compare | __comp | |||
) |
Sort a heap using comparison functor.
first | Start of heap. | |
last | End of heap. | |
comp | Comparison functor to use. |
Definition at line 476 of file stl_heap.h.
References __glibcxx_function_requires, __glibcxx_requires_heap_pred, and __glibcxx_requires_valid_range.
void std::sort_heap | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __last | |||
) |
Sort a heap.
first | Start of heap. | |
last | End of heap. |
Definition at line 450 of file stl_heap.h.
References __glibcxx_function_requires, __glibcxx_requires_heap, and __glibcxx_requires_valid_range.
_ForwardIterator std::stable_partition | ( | _ForwardIterator | __first, | |
_ForwardIterator | __last, | |||
_Predicate | __pred | |||
) |
Move elements for which a predicate is true to the beginning of a sequence, preserving relative ordering.
first | A forward iterator. | |
last | A forward iterator. | |
pred | A predicate functor. |
middle
such that pred(i)
is true for each iterator i
in the range
[first,middle) and false for each i
in the range
[middle,last).partition()
with the additional guarantee that the relative ordering of elements in each group is preserved, so any two elements x
and y
in the range
[first,last) such that pred(x)==pred
(y) will have the same relative ordering after calling stable_partition()
.
Definition at line 1516 of file stl_algo.h.
References __glibcxx_function_requires, __glibcxx_requires_valid_range, __inplace_stable_partition(), __stable_partition_adaptive(), std::_Temporary_buffer< _ForwardIterator, _Tp >::begin(), std::_Temporary_buffer< _ForwardIterator, _Tp >::requested_size(), and std::_Temporary_buffer< _ForwardIterator, _Tp >::size().
void std::stable_sort | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __last, | |||
_Compare | __comp | |||
) | [inline] |
Sort the elements of a sequence using a predicate for comparison, preserving the relative order of equivalent elements.
first | An iterator. | |
last | Another iterator. | |
comp | A comparison functor. |
[first,last) in ascending order, such that comp
(*(i+1),*i) is false for each iterator i
in the range
[first,last-1).
The relative ordering of equivalent elements is preserved, so any two elements x
and y
in the range [first,last) such that
comp(x,y)
is false and comp(y,x)
is false will have the same relative ordering after calling stable_sort()
.
Definition at line 5007 of file stl_algo.h.
References __glibcxx_function_requires, __glibcxx_requires_valid_range, __inplace_stable_sort(), __stable_sort_adaptive(), std::_Temporary_buffer< _ForwardIterator, _Tp >::begin(), and std::_Temporary_buffer< _ForwardIterator, _Tp >::size().
void std::stable_sort | ( | _RandomAccessIterator | __first, | |
_RandomAccessIterator | __last | |||
) | [inline] |
Sort the elements of a sequence, preserving the relative order of equivalent elements.
first | An iterator. | |
last | Another iterator. |
[first,last) in ascending order, such that *
(i+1)<*i is false for each iterator i
in the range
[first,last-1).
The relative ordering of equivalent elements is preserved, so any two elements x
and y
in the range [first,last) such that
x<y
is false and y<x
is false will have the same relative ordering after calling stable_sort()
.
Definition at line 4966 of file stl_algo.h.
References __glibcxx_function_requires, __glibcxx_requires_valid_range, __inplace_stable_sort(), __stable_sort_adaptive(), std::_Temporary_buffer< _ForwardIterator, _Tp >::begin(), and std::_Temporary_buffer< _ForwardIterator, _Tp >::size().
void std::swap | ( | vector< _Tp, _Alloc > & | __x, | |
vector< _Tp, _Alloc > & | __y | |||
) | [inline] |
See std::vector::swap().
Definition at line 1157 of file stl_vector.h.
References std::vector< _Tp, _Alloc >::swap().
void std::swap | ( | set< _Key, _Compare, _Alloc > & | __x, | |
set< _Key, _Compare, _Alloc > & | __y | |||
) | [inline] |
See std::set::swap().
Definition at line 647 of file stl_set.h.
References std::set< _Key, _Compare, _Alloc >::swap().
void std::swap | ( | multiset< _Key, _Compare, _Alloc > & | __x, | |
multiset< _Key, _Compare, _Alloc > & | __y | |||
) | [inline] |
Definition at line 634 of file stl_multiset.h.
References std::multiset< _Key, _Compare, _Alloc >::swap().
void std::swap | ( | multimap< _Key, _Tp, _Compare, _Alloc > & | __x, | |
multimap< _Key, _Tp, _Compare, _Alloc > & | __y | |||
) | [inline] |
Definition at line 736 of file stl_multimap.h.
References std::multimap< _Key, _Tp, _Compare, _Alloc >::swap().
void std::swap | ( | map< _Key, _Tp, _Compare, _Alloc > & | __x, | |
map< _Key, _Tp, _Compare, _Alloc > & | __y | |||
) | [inline] |
See std::map::swap().
Definition at line 807 of file stl_map.h.
References std::map< _Key, _Tp, _Compare, _Alloc >::swap().
void std::swap | ( | list< _Tp, _Alloc > & | __x, | |
list< _Tp, _Alloc > & | __y | |||
) | [inline] |
See std::list::swap().
Definition at line 1446 of file stl_list.h.
References std::list< _Tp, _Alloc >::swap().
void std::swap | ( | deque< _Tp, _Alloc > & | __x, | |
deque< _Tp, _Alloc > & | __y | |||
) | [inline] |
See std::deque::swap().
Definition at line 1753 of file stl_deque.h.
References std::deque< _Tp, _Alloc >::swap().
void std::swap | ( | basic_string< _CharT, _Traits, _Alloc > & | __lhs, | |
basic_string< _CharT, _Traits, _Alloc > & | __rhs | |||
) | [inline] |
Swap contents of two strings.
lhs | First string. | |
rhs | Second string. |
Definition at line 2385 of file basic_string.h.
References std::basic_string< _CharT, _Traits, _Alloc >::swap().
void std::swap | ( | _Tp & | __a, | |
_Tp & | __b | |||
) | [inline] |
Swaps two values.
a | A thing of arbitrary type. | |
b | Another thing of arbitrary type. |
Definition at line 80 of file stl_move.h.
References __glibcxx_function_requires, and _GLIBCXX_MOVE.
void std::swap | ( | function< _Signature > & | __x, | |
function< _Signature > & | __y | |||
) | [inline] |
Swap the targets of two polymorphic function object wrappers.
This function will not throw an exception.
Definition at line 2120 of file tr1_impl/functional.
_ForwardIterator2 std::swap_ranges | ( | _ForwardIterator1 | __first1, | |
_ForwardIterator1 | __last1, | |||
_ForwardIterator2 | __first2 | |||
) |
Swap the elements of two sequences.
first1 | A forward iterator. | |
last1 | A forward iterator. | |
first2 | A forward iterator. |
first2+
(last1-first1).
[first1,last1) with the corresponding element in the range
[first2,(last1-first1)). The ranges must not overlap.
Definition at line 161 of file stl_algobase.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
void std::terminate | ( | ) |
The runtime will call this function if exception handling must be abandoned for any reason. It can also be called by the user.
_CharT std::tolower | ( | _CharT | __c, | |
const locale & | __loc | |||
) | [inline] |
Convenience interface to ctype.tolower(__c).
Definition at line 2629 of file locale_facets.h.
Referenced by std::regex_traits< _Ch_type >::translate_nocase().
_CharT std::toupper | ( | _CharT | __c, | |
const locale & | __loc | |||
) | [inline] |
_OutputIterator std::transform | ( | _InputIterator1 | __first1, | |
_InputIterator1 | __last1, | |||
_InputIterator2 | __first2, | |||
_OutputIterator | __result, | |||
_BinaryOperation | __binary_op | |||
) |
Perform an operation on corresponding elements of two sequences.
first1 | An input iterator. | |
last1 | An input iterator. | |
first2 | An input iterator. | |
result | An output iterator. | |
binary_op | A binary operator. |
result+
(last-first).*
(result+N)=binary_op(*(first1+N),*(first2+N)) for each N
in the range
[0,last1-first1).
binary_op
must not alter either of its arguments.
Definition at line 4305 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
_OutputIterator std::transform | ( | _InputIterator | __first, | |
_InputIterator | __last, | |||
_OutputIterator | __result, | |||
_UnaryOperation | __unary_op | |||
) |
Perform an operation on a sequence.
first | An input iterator. | |
last | An input iterator. | |
result | An output iterator. | |
unary_op | A unary operator. |
result+
(last-first).*
(result+N)=unary_op(*(first+N)) for each N
in the range
[0,last-first).
unary_op
must not alter its argument.
Definition at line 4270 of file stl_algo.h.
References __glibcxx_function_requires, and __glibcxx_requires_valid_range.
bool std::uncaught_exception | ( | ) | throw () |
[18.6.4]/1: "Returns true after completing evaluation of a throw-expression until either completing initialization of the exception-declaration in the matching handler or entering unexpected()
due to the throw; or after entering terminate()
for any reason other than an explicit call to terminate()
. [Note: This includes stack unwinding [15.2]. end note]"
2: "When uncaught_exception()
is true, throwing an exception can result in a call of terminate()
(15.5.1)."
Referenced by std::basic_ostream< _CharT, _Traits >::sentry::~sentry().
void std::unexpected | ( | ) |
The runtime will call this function if an exception is thrown which violates the function's exception specification.
_ForwardIterator std::uninitialized_copy | ( | _InputIterator | __first, | |
_InputIterator | __last, | |||
_ForwardIterator | __result | |||
) | [inline] |
Copies the range [first,last) into result.
first | An input iterator. | |
last | An input iterator. | |
result | An output iterator. |
Definition at line 112 of file stl_uninitialized.h.
Referenced by __uninitialized_copy_a(), __gnu_cxx::__uninitialized_copy_n(), and __gnu_parallel::parallel_sort_mwms_pu().
void std::uninitialized_fill | ( | _ForwardIterator | __first, | |
_ForwardIterator | __last, | |||
const _Tp & | __x | |||
) | [inline] |
Copies the value x into the range [first,last).
first | An input iterator. | |
last | An input iterator. | |
x | The source value. |
Definition at line 169 of file stl_uninitialized.h.
Referenced by __uninitialized_fill_a().
void std::uninitialized_fill_n | ( | _ForwardIterator | __first, | |
_Size | __n, | |||
const _Tp & | __x | |||
) | [inline] |
Copies the value x into the range [first,first+n).
first | An input iterator. | |
n | The number of copies to make. | |
x | The source value. |
Definition at line 223 of file stl_uninitialized.h.
Referenced by __uninitialized_fill_n_a(), and std::_Temporary_buffer< _ForwardIterator, _Tp >::_Temporary_buffer().
_ForwardIterator std::unique | ( | _ForwardIterator | __first, | |
_ForwardIterator | __last, | |||
_BinaryPredicate | __binary_pred | |||
) |
Remove consecutive values from a sequence using a predicate.
first | A forward iterator. | |
last | A forward iterator. | |
binary_pred | A binary predicate. |
binary_pred
returns true. unique() is stable, so the relative order of elements that are not removed is unchanged. Elements between the end of the resulting sequence and last
are still present, but their value is unspecified.
Definition at line 881 of file stl_algo.h.
References __glibcxx_function_requires, __glibcxx_requires_valid_range, and _GLIBCXX_MOVE.
_ForwardIterator std::unique | ( | _ForwardIterator | __first, | |
_ForwardIterator | __last | |||
) |
Remove consecutive duplicate values from a sequence.
first | A forward iterator. | |
last | A forward iterator. |
last
are still present, but their value is unspecified.
Definition at line 842 of file stl_algo.h.
References __glibcxx_function_requires, __glibcxx_requires_valid_range, and _GLIBCXX_MOVE.
_OutputIterator std::unique_copy | ( | _InputIterator | __first, | |
_InputIterator | __last, | |||
_OutputIterator | __result, | |||
_BinaryPredicate | __binary_pred | |||
) | [inline] |
Copy a sequence, removing consecutive values using a predicate.
first | An input iterator. | |
last | An input iterator. | |
result | An output iterator. | |
binary_pred | A binary predicate. |
[first,last) to the range beginning at result
, except that only the first element is copied from groups of consecutive elements for which binary_pred
returns true. unique_copy() is stable, so the relative order of elements that are copied is unchanged._GLIBCXX_RESOLVE_LIB_DEFECTS DR 241. Does unique_copy() require CopyConstructible and Assignable?
Definition at line 4499 of file stl_algo.h.
References __glibcxx_function_requires, __glibcxx_requires_valid_range, __iterator_category(), and __unique_copy().
_OutputIterator std::unique_copy | ( | _InputIterator | __first, | |
_InputIterator | __last, | |||
_OutputIterator | __result | |||
) | [inline] |
Copy a sequence, removing consecutive duplicate values.
first | An input iterator. | |
last | An input iterator. | |
result | An output iterator. |
[first,last) to the range beginning at result
, except that only the first element is copied from groups of consecutive elements that compare equal. unique_copy() is stable, so the relative order of elements that are copied is unchanged._GLIBCXX_RESOLVE_LIB_DEFECTS DR 241. Does unique_copy() require CopyConstructible and Assignable?
_GLIBCXX_RESOLVE_LIB_DEFECTS DR 538. 241 again: Does unique_copy() require CopyConstructible and Assignable?
Definition at line 4460 of file stl_algo.h.
References __glibcxx_function_requires, __glibcxx_requires_valid_range, __iterator_category(), and __unique_copy().
ios_base& std::unitbuf | ( | ios_base & | __base | ) | [inline] |
Calls base.setf(ios_base::unitbuf).
Definition at line 888 of file ios_base.h.
References std::ios_base::setf().
Referenced by nounitbuf(), and std::basic_ostream< _CharT, _Traits >::sentry::~sentry().
ios_base& std::uppercase | ( | ios_base & | __base | ) | [inline] |
Calls base.setf(ios_base::uppercase).
Definition at line 872 of file ios_base.h.
References std::ios_base::setf().
Referenced by nouppercase().
const _Facet & std::use_facet | ( | const locale & | __loc | ) |
Return a facet.
use_facet looks for and returns a reference to a facet of type Facet where Facet is the template parameter. If has_facet(locale) is true, there is a suitable facet to return. It throws std::bad_cast if the locale doesn't contain a facet of type Facet.
Facet | The facet type to access. | |
locale | The locale to use. |
std::bad_cast | if locale doesn't contain a facet of type Facet. |
Definition at line 110 of file locale_classes.tcc.
References std::locale::_M_impl.
Referenced by std::regex_traits< _Ch_type >::isctype(), std::regex_traits< _Ch_type >::transform(), and std::regex_traits< _Ch_type >::translate_nocase().
basic_istream< _CharT, _Traits > & std::ws | ( | basic_istream< _CharT, _Traits > & | __is | ) |
Quick and easy way to eat whitespace.
This manipulator extracts whitespace characters, stopping when the next character is non-whitespace, or when the input sequence is empty. If the sequence is empty, eofbit
is set in the stream, but not failbit
.
The current locale is used to distinguish whitespace characters.
Example:
will skip leading whitespace before calling operator>> on cin and your object. Note that the same effect can be achieved by creating a std::basic_istream::sentry inside your definition of operator>>.Definition at line 951 of file istream.tcc.
References std::ios_base::eofbit, std::ios_base::getloc(), std::basic_ios< _CharT, _Traits >::rdbuf(), std::basic_ios< _CharT, _Traits >::setstate(), and std::ctype_base::space.
A simple smart pointer providing strict ownership semantics.
The Standard says:
Anauto_ptr
owns the object it holds a pointer to. Copying anauto_ptr
copies the pointer and transfers ownership to the destination. If more than oneauto_ptr
owns the same object at the same time the behavior of the program is undefined.
The uses ofQuoted from [20.4.5]/3.auto_ptr
include providing temporary exception-safety for dynamically allocated memory, passing ownership of dynamically allocated memory to a function, and returning dynamically allocated memory from a function.auto_ptr
does not meet the CopyConstructible and Assignable requirements for Standard Library container elements and thus instantiating a Standard Library container with anauto_ptr
results in undefined behavior.
Good examples of what can and cannot be done with auto_ptr can be found in the libstdc++ testsuite.
_GLIBCXX_RESOLVE_LIB_DEFECTS 127. auto_ptr<> conversion issues These resolutions have all been incorporated.
A wrapper class to provide auto_ptr with reference semantics. For example, an auto_ptr can be assigned (or constructed from) the result of a function which returns an auto_ptr by value.
All the auto_ptr_ref stuff should happen behind the scenes.
Linked to standard error (unbuffered).
Linked to standard error (buffered).
Linked to standard output.