My Project
Classes | Typedefs | Functions
add_rvalue_reference.hpp File Reference
#include "cstdint.hpp"
#include "type_identity.hpp"

Go to the source code of this file.

Classes

class  bsl::add_rvalue_reference< T >
 Provides the member typedef type which is the same as T, except that a topmost rvalue reference is added. More...
 

Typedefs

template<typename T >
using bsl::add_rvalue_reference_t = typename add_rvalue_reference< T >::type
 a helper that reduces the verbosity of bsl::add_rvalue_reference
 

Functions

template<typename T >
auto bsl::details::try_add_rvalue_reference (bsl::int32 ignored) noexcept -> type_identity< T && >
 Returns T with an added && if possible. More...
 
template<typename T >
auto bsl::details::try_add_rvalue_reference (bool ignored) noexcept -> type_identity< T >
 Returns T if && cannot be added. More...
 

Detailed Description

Function Documentation

◆ try_add_rvalue_reference() [1/2]

template<typename T >
auto bsl::details::try_add_rvalue_reference ( bsl::int32  ignored) -> type_identity< T && >
noexcept

Returns T with an added && if possible.

Template Parameters
Tthe type to return with an added &&
Parameters
ignoredignored
Returns
only used for decltype

◆ try_add_rvalue_reference() [2/2]

template<typename T >
auto bsl::details::try_add_rvalue_reference ( bool  ignored) -> type_identity< T >
noexcept

Returns T if && cannot be added.

Template Parameters
Tthe type to return without an addd &&
Parameters
ignoredignored
Returns
only used for decltype