tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
pointer_like_traits< T const * > Struct Template Reference

Provide pointer_like_traits for const pointers. More...

#include <pointer_like_traits.hpp>

Public Types

using non_const = pointer_like_traits<T*>
 

Static Public Member Functions

static auto get_as_void_pointer (T const *p) -> void const *
 
static auto get_from_void_pointer (void const *p) -> T const *
 

Static Public Attributes

static constexpr size_t free_bits = non_const::free_bits
 

Detailed Description

template<typename T>
struct etl::pointer_like_traits< T const * >

Provide pointer_like_traits for const pointers.

Member Typedef Documentation

◆ non_const

template<typename T>
using non_const = pointer_like_traits<T*>

Member Function Documentation

◆ get_as_void_pointer()

template<typename T>
auto get_as_void_pointer ( T const * p) -> void const*
inlinestaticnodiscard

◆ get_from_void_pointer()

template<typename T>
auto get_from_void_pointer ( void const * p) -> T const*
inlinestaticnodiscard

Member Data Documentation

◆ free_bits

template<typename T>
size_t free_bits = non_const::free_bits
staticconstexpr

The documentation for this struct was generated from the following file: