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

Go to the source code of this file.

Classes

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

Typedefs

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

Functions

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

Detailed Description

Function Documentation

◆ try_add_pointer() [1/2]

template<typename T >
auto bsl::details::try_add_pointer ( bsl::int32  ignored) -> type_identity< remove_reference_t< 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_pointer() [2/2]

template<typename T >
auto bsl::details::try_add_pointer ( 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