libstdc++
|
Modules | |
Function Objects | |
Memory | |
Metaprogramming | |
Rational Arithmetic | |
Time | |
Classes | |
class | std::bitset< _Nb > |
struct | std::pair< _T1, _T2 > |
struct | std::piecewise_construct_t |
class | std::tuple< _Elements > |
class | std::tuple< _T1, _T2 > |
struct | std::tuple_element< __i, tuple< _Types... > > |
struct | std::tuple_size< tuple< _Elements... > > |
struct | std::type_index |
struct | std::uses_allocator< tuple< _Types... >, _Alloc > |
Functions | |
template<typename... _Args1, typename... _Args2> | |
constexpr | std::pair< _T1, _T2 >::pair (piecewise_construct_t, tuple< _Args1... >, tuple< _Args2... >) |
template<typename _Tp > | |
constexpr _Tp * | std::__addressof (_Tp &__r) noexcept |
template<typename _Tp , typename _Up = _Tp> | |
constexpr _Tp | std::__exchange (_Tp &__obj, _Up &&__new_val) |
template<size_t __i, typename _Head , typename... _Tail> | |
constexpr _Head & | std::__get_helper (_Tuple_impl< __i, _Head, _Tail... > &__t) noexcept |
template<size_t __i, typename _Head , typename... _Tail> | |
constexpr const _Head & | std::__get_helper (const _Tuple_impl< __i, _Head, _Tail... > &__t) noexcept |
template<size_t __i, typename... _Types> | |
__enable_if_t<(__i >=sizeof...(_Types))> | std::__get_helper (const tuple< _Types... > &)=delete |
template<typename _Tp , typename _Up = typename __inv_unwrap<_Tp>::type> | |
constexpr _Up && | std::__invfwd (typename remove_reference< _Tp >::type &__t) noexcept |
template<typename _Callable , typename... _Args> | |
constexpr __invoke_result< _Callable, _Args... >::type | std::__invoke (_Callable &&__fn, _Args &&... __args) noexcept(__is_nothrow_invocable< _Callable, _Args... >::value) |
template<typename _Res , typename _MemFun , typename _Tp , typename... _Args> | |
constexpr _Res | std::__invoke_impl (__invoke_memfun_deref, _MemFun &&__f, _Tp &&__t, _Args &&... __args) |
template<typename _Res , typename _MemFun , typename _Tp , typename... _Args> | |
constexpr _Res | std::__invoke_impl (__invoke_memfun_ref, _MemFun &&__f, _Tp &&__t, _Args &&... __args) |
template<typename _Res , typename _MemPtr , typename _Tp > | |
constexpr _Res | std::__invoke_impl (__invoke_memobj_deref, _MemPtr &&__f, _Tp &&__t) |
template<typename _Res , typename _MemPtr , typename _Tp > | |
constexpr _Res | std::__invoke_impl (__invoke_memobj_ref, _MemPtr &&__f, _Tp &&__t) |
template<typename _Res , typename _Fn , typename... _Args> | |
constexpr _Res | std::__invoke_impl (__invoke_other, _Fn &&__f, _Args &&... __args) |
template<typename _Res , typename _Callable , typename... _Args> | |
constexpr enable_if_t< is_invocable_r_v< _Res, _Callable, _Args... >, _Res > | std::__invoke_r (_Callable &&__fn, _Args &&... __args) noexcept(is_nothrow_invocable_r_v< _Res, _Callable, _Args... >) |
template<typename _Cat , typename _Tp , typename _Up , typename _IndexSeq > | |
constexpr _Cat | std::__tuple_cmp (const _Tp &__t, const _Up &__u, _IndexSeq __indices) |
template<typename _Tp > | |
constexpr _Tp * | std::addressof (_Tp &__r) noexcept |
template<typename _Tp > | |
const _Tp * | std::addressof (const _Tp &&)=delete |
template<typename _Tp > | |
auto | std::declval () noexcept -> decltype(__declval< _Tp >(0)) |
template<typename _Tp > | |
constexpr _Tp && | std::forward (typename std::remove_reference< _Tp >::type &&__t) noexcept |
template<typename _Tp > | |
constexpr _Tp && | std::forward (typename std::remove_reference< _Tp >::type &__t) noexcept |
template<typename... _Elements> | |
constexpr tuple< _Elements &&... > | std::forward_as_tuple (_Elements &&... __args) noexcept |
template<size_t __i, typename... _Elements> | |
constexpr const __tuple_element_t< __i, tuple< _Elements... > > && | std::get (const tuple< _Elements... > &&__t) noexcept |
template<size_t __i, typename... _Elements> | |
constexpr const __tuple_element_t< __i, tuple< _Elements... > > & | std::get (const tuple< _Elements... > &__t) noexcept |
template<size_t __i, typename... _Elements> | |
constexpr __tuple_element_t< __i, tuple< _Elements... > > && | std::get (tuple< _Elements... > &&__t) noexcept |
template<size_t __i, typename... _Elements> | |
constexpr __tuple_element_t< __i, tuple< _Elements... > > & | std::get (tuple< _Elements... > &__t) noexcept |
template<typename _T1 , typename _T2 > | |
constexpr pair< typename __decay_and_strip< _T1 >::__type, typename __decay_and_strip< _T2 >::__type > | make_pair (_T1 &&__x, _T2 &&__y) |
template<typename... _Elements> | |
constexpr tuple< typename __decay_and_strip< _Elements >::__type... > | std::make_tuple (_Elements &&... __args) |
template<typename _Tp > | |
constexpr std::remove_reference< _Tp >::type && | std::move (_Tp &&__t) noexcept |
template<typename _Tp > | |
constexpr __conditional_t< __move_if_noexcept_cond< _Tp >::value, const _Tp &, _Tp && > | std::move_if_noexcept (_Tp &__x) noexcept |
template<typename... _Tps, typename... _Ups> requires (sizeof...(_Tps) == sizeof...(_Ups)) && (requires { typename __detail::__synth3way_t<_Tps, _Ups>; } && ...) | |
constexpr common_comparison_category_t< __detail::__synth3way_t< _Tps, _Ups >... > | std::operator<=> (const tuple< _Tps... > &__t, const tuple< _Ups... > &__u) |
template<typename... _Tps, typename... _Ups> requires (sizeof...(_Tps) == sizeof...(_Ups)) && (requires (const _Tps& __t, const _Ups& __u) { { __t == __u } -> __detail::__boolean_testable; } && ...) | |
constexpr bool | std::operator== (const tuple< _Tps... > &__t, const tuple< _Ups... > &__u) |
template<typename _Tp > | |
constexpr enable_if< __and_< __not_< __is_tuple_like< _Tp > >, is_move_constructible< _Tp >, is_move_assignable< _Tp > >::value >::type | std::swap (_Tp &__a, _Tp &__b) noexcept(/*conditional */) is_nothrow_move_assignable< _Tp > > |
template<typename _Tp , size_t _Nm> | |
constexpr enable_if< __is_swappable< _Tp >::value >::type | std::swap (_Tp(&__a)[_Nm], _Tp(&__b)[_Nm]) noexcept(/*conditional */) |
template<typename... _Elements> | |
constexpr enable_if< __and_< __is_swappable< _Elements >... >::value >::type | std::swap (tuple< _Elements... > &__x, tuple< _Elements... > &__y) noexcept(noexcept(__x.swap(__y))) |
template<typename... _Elements> | |
constexpr tuple< _Elements &... > | std::tie (_Elements &... __args) noexcept |
template<typename... _UTypes> | |
std::tuple (_UTypes...) -> tuple< _UTypes... > | |
template<typename _Alloc , typename... _UTypes> | |
std::tuple (allocator_arg_t, _Alloc, _UTypes...) -> tuple< _UTypes... > | |
template<typename _Alloc , typename _T1 , typename _T2 > | |
std::tuple (allocator_arg_t, _Alloc, pair< _T1, _T2 >) -> tuple< _T1, _T2 > | |
template<typename _Alloc , typename... _UTypes> | |
std::tuple (allocator_arg_t, _Alloc, tuple< _UTypes... >) -> tuple< _UTypes... > | |
template<typename _T1 , typename _T2 > | |
std::tuple (pair< _T1, _T2 >) -> tuple< _T1, _T2 > | |
template<typename... _Tpls, typename = typename enable_if<__and_<__is_tuple_like<_Tpls>...>::value>::type> | |
constexpr auto | std::tuple_cat (_Tpls &&... __tpls) -> typename __tuple_cat_result< _Tpls... >::__type |
Variables | |
constexpr piecewise_construct_t | std::piecewise_construct |
template<typename... _Types> | |
constexpr size_t | std::tuple_size_v< const tuple< _Types... > > |
template<typename... _Types> | |
constexpr size_t | std::tuple_size_v< tuple< _Types... > > |
template<typename _T1 , typename _T2 > | |
pair (_T1, _T2) -> pair< _T1, _T2 > | |
template<typename _T1 , typename _T2 , typename _U1 , typename _U2 > | |
constexpr bool | operator== (const pair< _T1, _T2 > &__x, const pair< _U1, _U2 > &__y) |
template<typename _T1 , typename _T2 , typename _U1 , typename _U2 > | |
constexpr common_comparison_category_t< __detail::__synth3way_t< _T1, _U1 >, __detail::__synth3way_t< _T2, _U2 > > | operator (const pair< _T1, _T2 > &__x, const pair< _U1, _U2 > &__y) |
template<typename _T1 , typename _T2 > | |
constexpr enable_if< __and_< __is_swappable< _T1 >, __is_swappable< _T2 > >::value >::type | swap (pair< _T1, _T2 > &__x, pair< _T1, _T2 > &__y) noexcept(noexcept(__x.swap(__y))) |
Basic function and class templates used with the rest of the library. Includes pair, swap, forward/move helpers, declval, integer_sequence.
Two pairs are equal iff their members are equal.
|
inlineconstexpr |
"piecewise construction" using a tuple of arguments for each member.
__first | Arguments for the first member of the pair. |
__second | Arguments for the second member of the pair. |
The elements of each tuple will be used as the constructor arguments for the data members of the pair.
|
inlineconstexprnoexcept |
Same as C++11 std::addressof.
Definition at line 51 of file move.h.
Referenced by __gnu_debug::_Safe_sequence< _Sequence >::_M_transfer_from_if(), std::addressof(), std::begin(), std::begin(), std::basic_ios< _CharT, _Traits >::copyfmt(), std::end(), std::end(), std::forward_list< _Tp, _Alloc >::merge(), std::list< _Tp, _Alloc >::merge(), std::list< _Tp, _Alloc >::merge(), std::sub_match< _BiIter >::operator(), __gnu_debug::_Safe_iterator< _Iterator, _Sequence, _Category >::operator=(), __gnu_debug::_Safe_local_iterator< _Iterator, _Sequence >::operator=(), std::deque< _Tp, _Alloc >::operator=(), std::forward_list< _Tp, _Alloc >::operator=(), std::list< _Tp, _Alloc >::operator=(), std::sub_match< _BiIter >::operator==(), std::list< _Tp, _Alloc >::splice(), and std::list< _Tp, _Alloc >::splice().
|
inlineconstexpr |
|
constexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexprnoexcept |
|
constexpr |
|
inlineconstexprnoexcept |
Returns the actual address of the object or function referenced by r, even in the presence of an overloaded operator&.
__r | Reference to an object or function. |
Definition at line 163 of file move.h.
References std::__addressof().
|
noexcept |
Utility to simplify expressions used in unevaluated operands
Definition at line 2555 of file type_traits.
|
constexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
Create a tuple of lvalue or rvalue references to the arguments.
Definition at line 2676 of file tuple.
Referenced by std::map< _Key, _Tp, _Compare, _Alloc >::insert_or_assign(), std::map< _Key, _Tp, _Compare, _Alloc >::insert_or_assign(), std::map< _Key, _Tp, _Compare, _Alloc >::try_emplace(), and std::map< _Key, _Tp, _Compare, _Alloc >::try_emplace().
|
related |
A convenience wrapper for creating a pair from two objects.
__x | The first object. |
__y | The second object. |
The C++98 standard says the objects are passed by reference-to-const, but C++03 says they are passed by value (this was LWG issue #181).
Since C++11 they have been passed by forwarding reference and then forwarded to the new members of the pair. To create a pair with a member of reference type, pass a reference_wrapper
to this function.
Definition at line 1146 of file stl_pair.h.
|
constexpr |
|
constexprnoexcept |
Convert a value to an rvalue.
__t | A thing of arbitrary type. |
Definition at line 127 of file move.h.
Referenced by std::unique_ptr< _Tp, _Dp >::~unique_ptr(), std::experimental::any_cast(), std::basic_regex< _Ch_type, _Rx_traits >::assign(), std::async(), std::atomic_compare_exchange_strong(), std::atomic_compare_exchange_strong(), std::atomic_compare_exchange_strong_explicit(), std::atomic_compare_exchange_strong_explicit(), std::atomic_compare_exchange_weak(), std::atomic_compare_exchange_weak(), std::atomic_compare_exchange_weak_explicit(), std::atomic_compare_exchange_weak_explicit(), std::atomic_exchange(), std::atomic_exchange(), std::atomic_store(), std::atomic_store(), std::shared_ptr< _Tp >::const_pointer_cast(), std::shared_ptr< _Tp >::dynamic_pointer_cast(), std::exclusive_scan(), std::exclusive_scan(), std::for_each_n(), std::future< _Res >::get(), std::get(), std::get(), std::get(), std::get(), std::get(), std::get(), std::inclusive_scan(), std::map< _Key, _Tp, _Compare, _Alloc >::insert(), std::multimap< _Key, _Tp, _Compare, _Alloc >::insert(), std::multiset< _Key, _Compare, _Alloc >::insert(), std::set< _Key, _Compare, _Alloc >::insert(), std::unordered_multimap< _Key, _Tp, _Hash, _Pred, _Alloc >::insert(), std::unordered_multiset< _Value, _Hash, _Pred, _Alloc >::insert(), std::unordered_map< _Key, _Tp, _Hash, _Pred, _Alloc >::insert(), std::unordered_multimap< _Key, _Tp, _Hash, _Pred, _Alloc >::insert(), std::unordered_set< _Value, _Hash, _Pred, _Alloc >::insert(), std::unordered_multiset< _Value, _Hash, _Pred, _Alloc >::insert(), std::vector< _Tp, _Alloc >::insert(), std::deque< _Tp, _Alloc >::insert(), std::list< _Tp, _Alloc >::insert(), std::map< _Key, _Tp, _Compare, _Alloc >::insert(), std::multimap< _Key, _Tp, _Compare, _Alloc >::insert(), std::vector< _Tp, _Alloc >::insert(), std::unordered_map< _Key, _Tp, _Hash, _Pred, _Alloc >::insert(), std::unordered_set< _Value, _Hash, _Pred, _Alloc >::insert(), std::map< _Key, _Tp, _Compare, _Alloc >::insert(), std::multimap< _Key, _Tp, _Compare, _Alloc >::insert(), std::multiset< _Key, _Compare, _Alloc >::insert(), std::set< _Key, _Compare, _Alloc >::insert(), std::unordered_map< _Key, _Tp, _Hash, _Pred, _Alloc >::insert(), std::unordered_multimap< _Key, _Tp, _Hash, _Pred, _Alloc >::insert(), std::unordered_set< _Value, _Hash, _Pred, _Alloc >::insert(), std::unordered_multiset< _Value, _Hash, _Pred, _Alloc >::insert(), std::map< _Key, _Tp, _Compare, _Alloc >::insert(), std::multimap< _Key, _Tp, _Compare, _Alloc >::insert(), std::unordered_map< _Key, _Tp, _Hash, _Pred, _Alloc >::insert(), std::unordered_multimap< _Key, _Tp, _Hash, _Pred, _Alloc >::insert(), std::unordered_set< _Value, _Hash, _Pred, _Alloc >::insert(), std::unordered_multiset< _Value, _Hash, _Pred, _Alloc >::insert(), std::experimental::make_boyer_moore_horspool_searcher(), std::experimental::make_boyer_moore_searcher(), std::forward_list< _Tp, _Alloc >::merge(), std::forward_list< _Tp, _Alloc >::merge(), std::move_if_noexcept(), std::tr2::dynamic_bitset< _WordT, _Alloc >::operator&=(), std::chrono::operator<<(), std::deque< _Tp, _Alloc >::operator=(), std::forward_list< _Tp, _Alloc >::operator=(), std::function< _Res(_ArgTypes...)>::operator=(), std::list< _Tp, _Alloc >::operator=(), std::vector< _Tp, _Alloc >::operator=(), std::operator>>(), std::unordered_map< _Key, _Tp, _Hash, _Pred, _Alloc >::operator[](), std::reduce(), std::shared_ptr< _Tp >::reinterpret_pointer_cast(), std::unique_ptr< _Tp[], _Dp >::reset(), std::unique_ptr< _Tp, _Dp >::reset(), std::list< _Tp, _Alloc >::splice(), std::list< _Tp, _Alloc >::splice(), std::shared_ptr< _Tp >::static_pointer_cast(), std::transform_exclusive_scan(), std::transform_inclusive_scan(), and std::transform_reduce().
|
constexprnoexcept |
Conditionally convert a value to an rvalue.
__x | A thing of arbitrary type. |
Same as std::move unless the type's move constructor could throw and the type is copyable, in which case an lvalue-reference is returned instead.
Definition at line 148 of file move.h.
References std::move().
|
related |
Defines a lexicographical order for pairs.
For two pairs of comparable types, P
is ordered before Q
if P.first
is less than Q.first
, or if P.first
and Q.first
are equivalent (neither is less than the other) and P.second
is less than Q.second
.
Definition at line 1029 of file stl_pair.h.
References std::pair< _T1, _T2 >::first, and std::pair< _T1, _T2 >::second.
|
constexpr |
|
related |
Two pairs are equal iff their members are equal.
Definition at line 1013 of file stl_pair.h.
References std::pair< _T1, _T2 >::first, and std::pair< _T1, _T2 >::second.
|
constexpr |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
related |
Swap overload for pairs. Calls std::pair::swap().
Definition at line 1103 of file stl_pair.h.
|
constexprnoexcept |
Return a tuple of lvalue references bound to the arguments.
Definition at line 2815 of file tuple.
Referenced by std::basic_ios< _CharT, _Traits >::copyfmt().
|
constexpr |
|
inlineconstexpr |
Tag for piecewise construction of std::pair objects.
Definition at line 82 of file stl_pair.h.
Referenced by std::map< _Key, _Tp, _Compare, _Alloc >::insert_or_assign(), std::map< _Key, _Tp, _Compare, _Alloc >::insert_or_assign(), std::map< _Key, _Tp, _Compare, _Alloc >::operator[](), std::map< _Key, _Tp, _Compare, _Alloc >::try_emplace(), and std::map< _Key, _Tp, _Compare, _Alloc >::try_emplace().
|
inlineconstexpr |