kblib 0.2.3
General utilities library for modern C++
kblib::detail_direct_map::storage_for< T, true > Struct Template Reference

#include <kblib/direct_map.h>

Public Member Functions

template<typename... Args, enable_if_t< std::is_constructible< T, Args &&... >::value, int > = 0>
constexpr auto construct (Args &&... args) noexcept(std::is_nothrow_constructible< T, Args &&... >::value) -> T &
 
constexpr auto destroy () noexcept -> void
 
KBLIB_NODISCARD constexpr auto get () &noexcept -> T *
 
KBLIB_NODISCARD constexpr auto get () const &noexcept -> const T *
 

Detailed Description

template<typename T>
struct kblib::detail_direct_map::storage_for< T, true >

Definition at line 101 of file direct_map.h.

Member Function Documentation

◆ construct()

template<typename T >
template<typename... Args, enable_if_t< std::is_constructible< T, Args &&... >::value, int > = 0>
constexpr auto kblib::detail_direct_map::storage_for< T, true >::construct ( Args &&...  args) -> T&
inlineconstexprnoexcept

Definition at line 109 of file direct_map.h.

◆ destroy()

template<typename T >
constexpr auto kblib::detail_direct_map::storage_for< T, true >::destroy ( ) -> void
inlineconstexprnoexcept

Definition at line 114 of file direct_map.h.

◆ get() [1/2]

template<typename T >
KBLIB_NODISCARD constexpr auto kblib::detail_direct_map::storage_for< T, true >::get ( ) & -> T*
inlineconstexprnoexcept

Definition at line 116 of file direct_map.h.

◆ get() [2/2]

template<typename T >
KBLIB_NODISCARD constexpr auto kblib::detail_direct_map::storage_for< T, true >::get ( ) const & -> const T*
inlineconstexprnoexcept

Definition at line 117 of file direct_map.h.


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