libstdc++
Utilities
Collaboration diagram for Utilities:

Modules

 Function Objects
 
 Memory
 
 Metaprogramming
 
 Rational Arithmetic
 
 Time
 

Classes

struct  std::_Optional_base< _Tp, bool, bool >
 
struct  std::_Tuple_impl< _Idx, _Elements >
 
struct  std::_Tuple_impl< _Idx, _Head, _Tail...>
 
class  std::any
 
class  std::bad_any_cast
 
class  std::bad_optional_access
 
class  std::bitset< _Nb >
 
struct  std::nullopt_t
 
class  std::optional< _Tp >
 
struct  std::pair< _T1, _T2 >
 
struct  std::piecewise_construct_t
 
class  std::tuple< _Elements >
 
class  std::tuple< _T1, _T2 >
 
struct  std::tuple_element< 0, tuple< _Head, _Tail...> >
 
struct  std::tuple_element< __i, tuple< _Head, _Tail...> >
 
struct  std::tuple_element< __i, tuple<> >
 
struct  std::tuple_size< tuple< _Elements...> >
 
struct  std::type_index
 
struct  std::uses_allocator< tuple< _Types...>, _Alloc >
 

Macros

#define __cpp_lib_addressof_constexpr
 
#define __cpp_lib_any
 
#define __cpp_lib_apply
 
#define __cpp_lib_make_from_tuple
 
#define __cpp_lib_optional
 
#define __cpp_lib_tuples_by_type
 

Typedefs

template<typename _Tp , typename _Up >
using std::__assigns_from_optional = __or_< is_assignable< _Tp &, const optional< _Up > & >, is_assignable< _Tp &, optional< _Up > & >, is_assignable< _Tp &, const optional< _Up > && >, is_assignable< _Tp &, optional< _Up > && >>
 
typedef __tuple_concater
< __ret, __idx, _Tpls...> 
std::__concater
 
template<typename _Tp , typename _Up >
using std::__converts_from_optional = __or_< is_constructible< _Tp, const optional< _Up > & >, is_constructible< _Tp, optional< _Up > & >, is_constructible< _Tp, const optional< _Up > && >, is_constructible< _Tp, optional< _Up > && >, is_convertible< const optional< _Up > &, _Tp >, is_convertible< optional< _Up > &, _Tp >, is_convertible< const optional< _Up > &&, _Tp >, is_convertible< optional< _Up > &&, _Tp >>
 
template<typename _Tp >
using std::__empty_not_final = typename conditional< __is_final(_Tp), false_type, __is_empty_non_tuple< _Tp >>::type
 
typedef __make_1st_indices
< _Tpls...>::__type 
std::__idx
 
template<typename _Tp , typename _Up >
using std::__optional_eq_t = __optional_relop_t< decltype(std::declval< const _Tp & >()==std::declval< const _Up & >()) >
 
template<typename _Tp , typename _Up >
using std::__optional_ge_t = __optional_relop_t< decltype(std::declval< const _Tp & >() >=std::declval< const _Up & >()) >
 
template<typename _Tp , typename _Up >
using std::__optional_gt_t = __optional_relop_t< decltype(std::declval< const _Tp & >() > std::declval< const _Up & >()) >
 
template<typename _Tp , typename _Up >
using std::__optional_le_t = __optional_relop_t< decltype(std::declval< const _Tp & >()<=std::declval< const _Up & >()) >
 
template<typename _Tp , typename _Up >
using std::__optional_lt_t = __optional_relop_t< decltype(std::declval< const _Tp & >()< std::declval< const _Up & >()) >
 
template<typename _Tp , typename _Up >
using std::__optional_ne_t = __optional_relop_t< decltype(std::declval< const _Tp & >()!=std::declval< const _Up & >()) >
 
template<typename _Tp >
using std::__optional_relop_t = enable_if_t< is_convertible< _Tp, bool >::value, bool >
 
typedef __combine_tuples
< typename __make_tuple< _Tpls >
::__type...>::__type 
std::__tuple_cat_result< _Tpls >::__type
 

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 _Fn , typename _Tuple , size_t... _Idx>
decltype(auto) constexpr std::__apply_impl (_Fn &&__f, _Tuple &&__t, index_sequence< _Idx...>)
 
template<typename _Tp , typename _Up = _Tp>
constexpr _Tp std::__exchange (_Tp &__obj, _Up &&__new_val)
 
template<typename _Tp , typename... _Types>
constexpr size_t std::__find_uniq_type_in_pack ()
 
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 _Res , typename _Fn , typename... _Args>
constexpr _Res std::__invoke_impl (__invoke_other, _Fn &&__f, _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 _MemFun , typename _Tp , typename... _Args>
constexpr _Res std::__invoke_impl (__invoke_memfun_deref, _MemFun &&__f, _Tp &&__t, _Args &&...__args)
 
template<typename _Res , typename _MemPtr , typename _Tp >
constexpr _Res std::__invoke_impl (__invoke_memobj_ref, _MemPtr &&__f, _Tp &&__t)
 
template<typename _Res , typename _MemPtr , typename _Tp >
constexpr _Res std::__invoke_impl (__invoke_memobj_deref, _MemPtr &&__f, _Tp &&__t)
 
template<typename _Tp , typename _Tuple , size_t... _Idx>
constexpr _Tp std::__make_from_tuple_impl (_Tuple &&__t, index_sequence< _Idx...>)
 
void std::__throw_bad_any_cast ()
 
void std::__throw_bad_optional_access ()
 
static void std::any::_Manager_internal< _Tp >::_S_manage (_Op __which, const any *__anyp, _Arg *__arg)
 
static void std::any::_Manager_external< _Tp >::_S_manage (_Op __which, const any *__anyp, _Arg *__arg)
 
template<typename _Tp >
constexpr _Tp * std::addressof (_Tp &__r) noexcept
 
template<typename _Tp >
const _Tp * std::addressof (const _Tp &&)=delete
 
template<typename _ValueType >
_ValueType std::any_cast (const any &__any)
 
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 __tuple_element_t
< __i, tuple< _Elements...> > & 
std::get (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 const
__tuple_element_t< __i, tuple
< _Elements...> > && 
std::get (const tuple< _Elements...> &&__t) noexcept
 
template<typename _Tp , typename... _Types>
constexpr _Tp & std::get (tuple< _Types...> &__t) noexcept
 
template<typename _Tp , typename... _Types>
constexpr _Tp && std::get (tuple< _Types...> &&__t) noexcept
 
template<typename _Tp , typename... _Types>
constexpr const _Tp & std::get (const tuple< _Types...> &__t) noexcept
 
template<typename _Tp , typename... _Types>
constexpr const _Tp && std::get (const tuple< _Types...> &&__t) noexcept
 
template<typename _Tp , typename... _Args>
any std::make_any (_Args &&...__args)
 
template<typename _Tp , typename _Up , typename... _Args>
any std::make_any (initializer_list< _Up > __il, _Args &&...__args)
 
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
< __move_if_noexcept_cond< _Tp >
::value, const _Tp &, _Tp && >
::type 
std::move_if_noexcept (_Tp &__x) noexcept
 
template<typename _Callable , typename... _Args>
constexpr __invoke_result
< _Callable, _Args...>::type 
std::noexcept (__is_nothrow_invocable< _Callable, _Args...>::value)
 
template<typename _Res , typename _Callable , typename... _Args>
constexpr enable_if_t
< is_invocable_r_v< _Res,
_Callable, _Args...>, _Res > 
std::noexcept (is_nothrow_invocable_r_v< _Res, _Callable, _Args...>)
 
template<typename _Tp >
constexpr enable_if< __and_
< __not_< __is_tuple_like< _Tp >
>, is_move_constructible< _Tp >
, is_move_assignable< _Tp >
>::value >::type 
std::noexcept () is_nothrow_move_assignable< _Tp >>
 
template<typename _Tp >
enable_if_t
< is_move_constructible_v< _Tp >
&&is_swappable_v< _Tp > > 
std::noexcept (noexcept(__lhs.swap(__rhs)))
 
template<typename _Tp >
constexpr enable_if_t
< is_constructible_v< decay_t
< _Tp >, _Tp >, optional
< decay_t< _Tp > > > 
std::noexcept (is_nothrow_constructible_v< optional< decay_t< _Tp >>, _Tp >)
 
template<typename _Tp , typename... _Args>
constexpr enable_if_t
< is_constructible_v< _Tp,
_Args...>, optional< _Tp > > 
std::noexcept (is_nothrow_constructible_v< _Tp, _Args...>)
 
template<typename _Tp , typename _Up , typename... _Args>
constexpr enable_if_t
< is_constructible_v< _Tp,
initializer_list< _Up >
&, _Args...>, optional< _Tp > > 
std::noexcept (is_nothrow_constructible_v< _Tp, initializer_list< _Up > &, _Args...>)
 
template<typename... _Elements>
constexpr enable_if< __and_
< __is_swappable< _Elements >
...>::value >::type 
std::noexcept (noexcept(__x.swap(__y)))
 
template<typename _Fn , typename _Tuple >
decltype(auto) constexpr std::noexcept (__unpack_std_tuple< is_nothrow_invocable, _Fn, _Tuple >)
 
template<typename _Tp , typename _Tuple >
constexpr _Tp std::noexcept (__unpack_std_tuple< is_nothrow_constructible, _Tp, _Tuple >)
 
template<typename _Tp , typename _Up >
constexpr auto std::operator!= (const optional< _Tp > &__lhs, const optional< _Up > &__rhs) -> __optional_ne_t< _Tp, _Up >
 
template<typename _Tp >
constexpr bool std::operator!= (const optional< _Tp > &__lhs, nullopt_t) noexcept
 
template<typename _Tp >
constexpr bool std::operator!= (nullopt_t, const optional< _Tp > &__rhs) noexcept
 
template<typename _Tp , typename _Up >
constexpr auto std::operator!= (const optional< _Tp > &__lhs, const _Up &__rhs) -> __optional_ne_t< _Tp, _Up >
 
template<typename _Tp , typename _Up >
constexpr auto std::operator!= (const _Up &__lhs, const optional< _Tp > &__rhs) -> __optional_ne_t< _Up, _Tp >
 
template<typename... _TElements, typename... _UElements>
constexpr bool std::operator!= (const tuple< _TElements...> &__t, const tuple< _UElements...> &__u)
 
template<typename _Tp , typename _Up >
constexpr auto std::operator< (const optional< _Tp > &__lhs, const optional< _Up > &__rhs) -> __optional_lt_t< _Tp, _Up >
 
template<typename _Tp >
constexpr bool std::operator< (const optional< _Tp > &, nullopt_t) noexcept
 
template<typename _Tp >
constexpr bool std::operator< (nullopt_t, const optional< _Tp > &__rhs) noexcept
 
template<typename _Tp , typename _Up >
constexpr auto std::operator< (const optional< _Tp > &__lhs, const _Up &__rhs) -> __optional_lt_t< _Tp, _Up >
 
template<typename _Tp , typename _Up >
constexpr auto std::operator< (const _Up &__lhs, const optional< _Tp > &__rhs) -> __optional_lt_t< _Up, _Tp >
 
template<typename... _TElements, typename... _UElements>
constexpr bool std::operator< (const tuple< _TElements...> &__t, const tuple< _UElements...> &__u)
 
template<typename _Tp , typename _Up >
constexpr auto std::operator<= (const optional< _Tp > &__lhs, const optional< _Up > &__rhs) -> __optional_le_t< _Tp, _Up >
 
template<typename _Tp >
constexpr bool std::operator<= (const optional< _Tp > &__lhs, nullopt_t) noexcept
 
template<typename _Tp >
constexpr bool std::operator<= (nullopt_t, const optional< _Tp > &) noexcept
 
template<typename _Tp , typename _Up >
constexpr auto std::operator<= (const optional< _Tp > &__lhs, const _Up &__rhs) -> __optional_le_t< _Tp, _Up >
 
template<typename _Tp , typename _Up >
constexpr auto std::operator<= (const _Up &__lhs, const optional< _Tp > &__rhs) -> __optional_le_t< _Up, _Tp >
 
template<typename... _TElements, typename... _UElements>
constexpr bool std::operator<= (const tuple< _TElements...> &__t, const tuple< _UElements...> &__u)
 
template<typename _Tp , typename _Up >
constexpr auto std::operator== (const optional< _Tp > &__lhs, const optional< _Up > &__rhs) -> __optional_eq_t< _Tp, _Up >
 
template<typename _Tp >
constexpr bool std::operator== (const optional< _Tp > &__lhs, nullopt_t) noexcept
 
template<typename _Tp >
constexpr bool std::operator== (nullopt_t, const optional< _Tp > &__rhs) noexcept
 
template<typename _Tp , typename _Up >
constexpr auto std::operator== (const optional< _Tp > &__lhs, const _Up &__rhs) -> __optional_eq_t< _Tp, _Up >
 
template<typename _Tp , typename _Up >
constexpr auto std::operator== (const _Up &__lhs, const optional< _Tp > &__rhs) -> __optional_eq_t< _Up, _Tp >
 
template<typename... _TElements, typename... _UElements>
constexpr bool std::operator== (const tuple< _TElements...> &__t, const tuple< _UElements...> &__u)
 
template<typename _Tp , typename _Up >
constexpr auto std::operator> (const optional< _Tp > &__lhs, const optional< _Up > &__rhs) -> __optional_gt_t< _Tp, _Up >
 
template<typename _Tp >
constexpr bool std::operator> (const optional< _Tp > &__lhs, nullopt_t) noexcept
 
template<typename _Tp >
constexpr bool std::operator> (nullopt_t, const optional< _Tp > &) noexcept
 
template<typename _Tp , typename _Up >
constexpr auto std::operator> (const optional< _Tp > &__lhs, const _Up &__rhs) -> __optional_gt_t< _Tp, _Up >
 
template<typename _Tp , typename _Up >
constexpr auto std::operator> (const _Up &__lhs, const optional< _Tp > &__rhs) -> __optional_gt_t< _Up, _Tp >
 
template<typename... _TElements, typename... _UElements>
constexpr bool std::operator> (const tuple< _TElements...> &__t, const tuple< _UElements...> &__u)
 
template<typename _Tp , typename _Up >
constexpr auto std::operator>= (const optional< _Tp > &__lhs, const optional< _Up > &__rhs) -> __optional_ge_t< _Tp, _Up >
 
template<typename _Tp >
constexpr bool std::operator>= (const optional< _Tp > &, nullopt_t) noexcept
 
template<typename _Tp >
constexpr bool std::operator>= (nullopt_t, const optional< _Tp > &__rhs) noexcept
 
template<typename _Tp , typename _Up >
constexpr auto std::operator>= (const optional< _Tp > &__lhs, const _Up &__rhs) -> __optional_ge_t< _Tp, _Up >
 
template<typename _Tp , typename _Up >
constexpr auto std::operator>= (const _Up &__lhs, const optional< _Tp > &__rhs) -> __optional_ge_t< _Up, _Tp >
 
template<typename... _TElements, typename... _UElements>
constexpr bool std::operator>= (const tuple< _TElements...> &__t, const tuple< _UElements...> &__u)
 
template<typename _Tp , size_t _Nm>
constexpr enable_if
< __is_swappable< _Tp >::value >
::type 
std::swap (_Tp(&__a)[_Nm], _Tp(&__b)[_Nm]) noexcept(/*conditional */)
 
void std::swap (any &__x, any &__y) noexcept
 
template<typename... _Elements>
constexpr enable_if<!__and_
< __is_swappable< _Elements >
...>::value >::type 
std::swap (tuple< _Elements...> &, tuple< _Elements...> &)=delete
 
template<typename... _Elements>
constexpr tuple< _Elements &...> std::tie (_Elements &...__args) noexcept
 

Variables

template<template< typename...> class _Trait, typename _Tp , typename _Tuple >
constexpr bool std::__unpack_std_tuple
 
template<template< typename...> class _Trait, typename _Tp , typename... _Up>
constexpr bool std::__unpack_std_tuple< _Trait, _Tp, const tuple< _Up...> & >
 
template<template< typename...> class _Trait, typename _Tp , typename... _Up>
constexpr bool std::__unpack_std_tuple< _Trait, _Tp, const tuple< _Up...> >
 
template<template< typename...> class _Trait, typename _Tp , typename... _Up>
constexpr bool std::__unpack_std_tuple< _Trait, _Tp, tuple< _Up...> & >
 
template<template< typename...> class _Trait, typename _Tp , typename... _Up>
constexpr bool std::__unpack_std_tuple< _Trait, _Tp, tuple< _Up...> >
 
constexpr _Swallow_assign std::ignore
 
constexpr piecewise_construct_t std::piecewise_construct
 
template<typename _Tp >
enable_if_t
<!(is_move_constructible_v
< _Tp > &&is_swappable_v< _Tp >)> 
std::swap (optional< _Tp > &, optional< _Tp > &)=delete
 
template<typename _Tp >
constexpr size_t std::tuple_size_v
 
 std::void
 
template<typename _ValueType >
_ValueType std::any_cast (any &__any)
 
template<typename _ValueType >
_ValueType std::any_cast (any &&__any)
 
template<typename _ValueType >
const _ValueType * std::any_cast (const any *__any) noexcept
 
template<typename _ValueType >
_ValueType * std::any_cast (any *__any) noexcept
 
template<typename _T1 , typename _T2 >
constexpr bool operator== (const pair< _T1, _T2 > &__x, const pair< _T1, _T2 > &__y)
 
template<typename _T1 , typename _T2 >
constexpr bool operator< (const pair< _T1, _T2 > &__x, const pair< _T1, _T2 > &__y)
 
template<typename _T1 , typename _T2 >
constexpr bool operator!= (const pair< _T1, _T2 > &__x, const pair< _T1, _T2 > &__y)
 
template<typename _T1 , typename _T2 >
constexpr bool operator> (const pair< _T1, _T2 > &__x, const pair< _T1, _T2 > &__y)
 
template<typename _T1 , typename _T2 >
constexpr bool operator<= (const pair< _T1, _T2 > &__x, const pair< _T1, _T2 > &__y)
 
template<typename _T1 , typename _T2 >
constexpr bool operator>= (const pair< _T1, _T2 > &__x, const pair< _T1, _T2 > &__y)
 
template<typename _T1 , typename _T2 >
constexpr enable_if< __and_
< __is_swappable< _T1 >
, __is_swappable< _T2 >
>::value >::type 
noexcept (noexcept(__x.swap(__y)))
 

Detailed Description

Components deemed generally useful. Includes pair, tuple, forward/move helpers, ratio, function object, metaprogramming and type traits, time, date, and memory functions.

Typedef Documentation

template<typename... _Tpls>
constexpr auto std::__tuple_cat_result< _Tpls, typename >::__type

tuple_cat

Definition at line 1664 of file tuple.

Function Documentation

template<class _T1, class _T2>
template<typename... _Args1, typename... _Args2>
constexpr std::pair< _T1, _T2 >::pair ( piecewise_construct_t  ,
tuple< _Args1...>  __first,
tuple< _Args2...>  __second 
)
inline

"piecewise construction" using a tuple of arguments for each member.

Parameters
__firstArguments for the first member of the pair.
__secondArguments 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.

Definition at line 1794 of file tuple.

template<typename _Tp >
constexpr _Tp* std::addressof ( _Tp &  __r)
inlinenoexcept

Returns the actual address of the object or function referenced by r, even in the presence of an overloaded operator&.

Parameters
__rReference to an object or function.
Returns
The actual address.

Definition at line 145 of file move.h.

References std::__addressof().

Referenced by std::pointer_traits< _Tp * >::pointer_to().

template<typename _ValueType >
_ValueType std::any_cast ( const any &  __any)
inline

Access the contained object.

Template Parameters
_ValueTypeA const-reference or CopyConstructible type.
Parameters
__anyThe object to access.
Returns
The contained object.
Exceptions
bad_any_castIf __any.type() != typeid(remove_reference_t<_ValueType>)

Definition at line 439 of file any.

Referenced by std::experimental::fundamentals_v1::any_cast(), and std::any_cast().

template<typename _ValueType >
_ValueType std::any_cast ( any &  __any)
inline

Access the contained object.

Template Parameters
_ValueTypeA reference or CopyConstructible type.
Parameters
__anyThe object to access.
Returns
The contained object.
Exceptions
bad_any_castIf __any.type() != typeid(remove_reference_t<_ValueType>)

Definition at line 465 of file any.

References std::any_cast().

template<typename _ValueType >
_ValueType std::any_cast ( any &&  __any)
inline

Access the contained object.

Template Parameters
_ValueTypeA reference or CopyConstructible type.
Parameters
__anyThe object to access.
Returns
The contained object.
Exceptions
bad_any_castIf __any.type() != typeid(remove_reference_t<_ValueType>)

Definition at line 479 of file any.

References std::any_cast(), and std::move().

template<typename _ValueType >
const _ValueType* std::any_cast ( const any *  __any)
inlinenoexcept

Access the contained object.

Template Parameters
_ValueTypeThe type of the contained object.
Parameters
__anyA pointer to the object to access.
Returns
The address of the contained object if __any != nullptr && __any.type() == typeid(_ValueType) , otherwise a null pointer.

Definition at line 534 of file any.

template<typename _ValueType >
_ValueType* std::any_cast ( any *  __any)
inlinenoexcept

Access the contained object.

Template Parameters
_ValueTypeThe type of the contained object.
Parameters
__anyA pointer to the object to access.
Returns
The address of the contained object if __any != nullptr && __any.type() == typeid(_ValueType) , otherwise a null pointer.

Definition at line 543 of file any.

template<typename _Tp >
constexpr _Tp&& std::forward ( typename std::remove_reference< _Tp >::type &  __t)
noexcept

Forward an lvalue.

Returns
The parameter cast to the specified type.

This function is used to implement "perfect forwarding".

Definition at line 77 of file move.h.

template<typename _Tp >
constexpr _Tp&& std::forward ( typename std::remove_reference< _Tp >::type &&  __t)
noexcept

Forward an rvalue.

Returns
The parameter cast to the specified type.

This function is used to implement "perfect forwarding".

Definition at line 89 of file move.h.

template<typename... _Elements>
constexpr tuple<_Elements&&...> std::forward_as_tuple ( _Elements &&...  __args)
noexcept
template<size_t __i, typename... _Elements>
constexpr __tuple_element_t<__i, tuple<_Elements...> >& std::get ( tuple< _Elements...> &  __t)
noexcept

Return a reference to the ith element of a tuple.

Definition at line 1382 of file tuple.

template<size_t __i, typename... _Elements>
constexpr const __tuple_element_t<__i, tuple<_Elements...> >& std::get ( const tuple< _Elements...> &  __t)
noexcept

Return a const reference to the ith element of a const tuple.

Definition at line 1388 of file tuple.

template<size_t __i, typename... _Elements>
constexpr __tuple_element_t<__i, tuple<_Elements...> >&& std::get ( tuple< _Elements...> &&  __t)
noexcept

Return an rvalue reference to the ith element of a tuple rvalue.

Definition at line 1394 of file tuple.

template<size_t __i, typename... _Elements>
constexpr const __tuple_element_t<__i, tuple<_Elements...> >&& std::get ( const tuple< _Elements...> &&  __t)
noexcept

Return a const rvalue reference to the ith element of a const tuple rvalue.

Definition at line 1403 of file tuple.

template<typename _Tp , typename... _Types>
constexpr _Tp& std::get ( tuple< _Types...> &  __t)
noexcept

Return a reference to the unique element of type _Tp of a tuple.

Definition at line 1438 of file tuple.

template<typename _Tp , typename... _Types>
constexpr _Tp&& std::get ( tuple< _Types...> &&  __t)
noexcept

Return a reference to the unique element of type _Tp of a tuple rvalue.

Definition at line 1449 of file tuple.

template<typename _Tp , typename... _Types>
constexpr const _Tp& std::get ( const tuple< _Types...> &  __t)
noexcept

Return a const reference to the unique element of type _Tp of a tuple.

Definition at line 1460 of file tuple.

template<typename _Tp , typename... _Types>
constexpr const _Tp&& std::get ( const tuple< _Types...> &&  __t)
noexcept

Return a const reference to the unique element of type _Tp of a const tuple rvalue.

Definition at line 1472 of file tuple.

template<typename _Tp , typename... _Args>
any std::make_any ( _Args &&...  __args)

Create an any holding a _Tp constructed from __args.

Definition at line 416 of file any.

References std::any::any().

template<typename _Tp , typename _Up , typename... _Args>
any std::make_any ( initializer_list< _Up >  __il,
_Args &&...  __args 
)

Create an any holding a _Tp constructed from __il and __args.

Definition at line 423 of file any.

References std::any::any().

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 
)
related

A convenience wrapper for creating a pair from two objects.

Parameters
__xThe first object.
__yThe second object.
Returns
A newly-constructed pair<> object of the appropriate type.

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 567 of file stl_pair.h.

template<typename _Tp >
constexpr std::remove_reference<_Tp>::type&& std::move ( _Tp &&  __t)
noexcept

Convert a value to an rvalue.

Parameters
__tA thing of arbitrary type.
Returns
The parameter cast to an rvalue-reference to allow moving it.

Definition at line 104 of file move.h.

Referenced by std::_Hashtable< _Key, _Tp, _Hash, _Pred, _Alloc >::_M_reinsert_node(), std::any_cast(), std::basic_regex< typename, typename >::assign(), std::async(), std::shared_ptr< _Tp >::atomic_compare_exchange_strong_explicit(), std::exclusive_scan(), std::for_each_n(), std::function< _Res(_ArgTypes...)>::function(), std::future< _Res >::get(), std::inclusive_scan(), std::unordered_set< _Value, _Hash, _Pred, _Alloc >::insert(), std::unordered_map< _Key, _Tp, _Hash, _Pred >::insert(), std::multimap< _Key, _Tp, _Compare, _Alloc >::insert(), std::multiset< _Key, _Compare, _Alloc >::insert(), std::set< _Key, _Compare, _Alloc >::insert(), std::map< _Key, _Tp, _Compare, _Alloc >::insert(), std::unordered_multiset< _Value, _Hash, _Pred, _Alloc >::insert(), std::vector< block_type, allocator_type >::insert(), std::list< __inp, __rebind_inp >::insert(), std::unordered_multimap< _Key, _Tp, _Hash, _Pred, _Alloc >::insert(), std::deque< _StateSeqT >::insert(), std::forward_list< _Tp, _Alloc >::merge(), std::move_if_noexcept(), std::noexcept(), std::tr2::dynamic_bitset< _WordT, _Alloc >::operator&=(), std::operator<<(), std::function< _Res(_ArgTypes...)>::operator=(), std::basic_regex< typename, typename >::operator=(), std::forward_list< _Tp, _Alloc >::operator=(), std::vector< block_type, allocator_type >::operator=(), std::list< __inp, __rebind_inp >::operator=(), std::deque< _StateSeqT >::operator=(), std::operator>>(), std::unordered_map< _Key, _Tp, _Hash, _Pred >::operator[](), std::reduce(), std::unique_ptr< _Result< _Res > >::reset(), std::unique_ptr< _Tp[], _Dp >::reset(), std::list< __inp, __rebind_inp >::splice(), std::transform_exclusive_scan(), std::transform_inclusive_scan(), std::transform_reduce(), and std::unique_ptr< _Result< _Res > >::~unique_ptr().

template<typename _Tp >
constexpr conditional<__move_if_noexcept_cond<_Tp>::value, const _Tp&, _Tp&&>::type std::move_if_noexcept ( _Tp &  __x)
noexcept

Conditionally convert a value to an rvalue.

Parameters
__xA thing of arbitrary type.
Returns
The parameter, possibly cast to an rvalue-reference.

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 125 of file move.h.

References std::move().

template<typename _Callable , typename... _Args>
constexpr __invoke_result<_Callable, _Args...>::type std::noexcept ( __is_nothrow_invocable< _Callable, _Args...>::value  )

Invoke a callable object.

Definition at line 91 of file invoke.h.

template<typename _Tp >
constexpr enable_if<__and_<__not_<__is_tuple_like<_Tp> >, is_move_constructible<_Tp>, is_move_assignable<_Tp> >::value>::type std::noexcept ( )
inline

Swaps two values.

Parameters
__aA thing of arbitrary type.
__bAnother thing of arbitrary type.
Returns
Nothing.

Definition at line 198 of file move.h.

template<typename _T1 , typename _T2 >
constexpr enable_if< __and_< __is_swappable< _T1 >, __is_swappable< _T2 > >::value >::type noexcept ( noexcept(__x.swap(__y))  )
related

Swap overload for pairs. Calls std::pair::swap().

Note
This std::swap overload is not declared in C++03 mode, which has performance implications, e.g. see https://gcc.gnu.org/PR38466

Definition at line 534 of file stl_pair.h.

template<typename... _Elements>
constexpr enable_if<__and_<__is_swappable<_Elements>...>::value >::type std::noexcept ( noexcept(__x.swap(__y))  )
related

swap

Definition at line 1750 of file tuple.

template<typename _T1 , typename _T2 >
constexpr bool operator!= ( const pair< _T1, _T2 > &  __x,
const pair< _T1, _T2 > &  __y 
)
related

Uses operator== to find the result.

Definition at line 496 of file stl_pair.h.

template<typename _T1 , typename _T2 >
constexpr bool operator< ( const pair< _T1, _T2 > &  __x,
const pair< _T1, _T2 > &  __y 
)
related

Defines a lexicographical order for pairs.

For two pairs of the same type, 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 489 of file stl_pair.h.

References std::pair< _T1, _T2 >::first, and std::pair< _T1, _T2 >::second.

template<typename _T1 , typename _T2 >
constexpr bool operator<= ( const pair< _T1, _T2 > &  __x,
const pair< _T1, _T2 > &  __y 
)
related

Uses operator< to find the result.

Definition at line 508 of file stl_pair.h.

template<typename _T1 , typename _T2 >
constexpr bool operator== ( const pair< _T1, _T2 > &  __x,
const pair< _T1, _T2 > &  __y 
)
related

Two pairs of the same type are equal iff their members are equal.

Definition at line 466 of file stl_pair.h.

References std::pair< _T1, _T2 >::first, and std::pair< _T1, _T2 >::second.

template<typename _T1 , typename _T2 >
constexpr bool operator> ( const pair< _T1, _T2 > &  __x,
const pair< _T1, _T2 > &  __y 
)
related

Uses operator< to find the result.

Definition at line 502 of file stl_pair.h.

template<typename _T1 , typename _T2 >
constexpr bool operator>= ( const pair< _T1, _T2 > &  __x,
const pair< _T1, _T2 > &  __y 
)
related

Uses operator< to find the result.

Definition at line 514 of file stl_pair.h.

template<typename _Tp , size_t _Nm>
constexpr enable_if<__is_swappable<_Tp>::value>::type std::swap ( _Tp(&)  __a[_Nm],
_Tp(&)  __b[_Nm] 
)
inlinenoexcept

Swap the contents of two arrays.

Definition at line 220 of file move.h.

void std::swap ( any &  __x,
any &  __y 
)
inlinenoexcept

Exchange the states of two any objects.

Definition at line 412 of file any.

template<typename... _Elements>
constexpr tuple<_Elements&...> std::tie ( _Elements &...  __args)
noexcept

tie

Definition at line 1735 of file tuple.

Referenced by std::basic_ios< _CharT, _Traits >::copyfmt(), std::lock(), and std::try_lock().

Variable Documentation

constexpr piecewise_construct_t std::piecewise_construct
inline