NCBI C++ ToolKit
Public Types | Static Public Member Functions | List of all members
ct::const_map_twoway< T1, T2 > Struct Template Reference

Search Toolkit Book for ct::const_map_twoway

#include <util/compile_time.hpp>

Public Types

using type1 = DeduceType< T1 >
 
using type2 = DeduceType< T2 >
 
using straight_traits = straight_map_traits< type1, type2 >
 
using reverse_traits = reverse_map_traits< type1, type2 >
 
using init_type = typename straight_traits::init_type
 
using map_type1 = const_map_impl< T1, T2, straight_traits, tag_DuplicatesNo >
 
using map_type2 = const_map_impl< T2, T1, reverse_traits, tag_DuplicatesNo >
 

Static Public Member Functions

template<size_t N>
static constexpr auto construct (init_type const (&init)[N])
 
template<size_t N>
static constexpr auto construct (const std::array< init_type, N > &init)
 

Detailed Description

template<typename T1, typename T2>
struct ct::const_map_twoway< T1, T2 >

Definition at line 142 of file compile_time.hpp.

Member Typedef Documentation

◆ init_type

template<typename T1 , typename T2 >
using ct::const_map_twoway< T1, T2 >::init_type = typename straight_traits::init_type

Definition at line 149 of file compile_time.hpp.

◆ map_type1

template<typename T1 , typename T2 >
using ct::const_map_twoway< T1, T2 >::map_type1 = const_map_impl<T1, T2, straight_traits, tag_DuplicatesNo>

Definition at line 151 of file compile_time.hpp.

◆ map_type2

template<typename T1 , typename T2 >
using ct::const_map_twoway< T1, T2 >::map_type2 = const_map_impl<T2, T1, reverse_traits, tag_DuplicatesNo>

Definition at line 152 of file compile_time.hpp.

◆ reverse_traits

template<typename T1 , typename T2 >
using ct::const_map_twoway< T1, T2 >::reverse_traits = reverse_map_traits<type1, type2>

Definition at line 148 of file compile_time.hpp.

◆ straight_traits

template<typename T1 , typename T2 >
using ct::const_map_twoway< T1, T2 >::straight_traits = straight_map_traits<type1, type2>

Definition at line 147 of file compile_time.hpp.

◆ type1

template<typename T1 , typename T2 >
using ct::const_map_twoway< T1, T2 >::type1 = DeduceType<T1>

Definition at line 144 of file compile_time.hpp.

◆ type2

template<typename T1 , typename T2 >
using ct::const_map_twoway< T1, T2 >::type2 = DeduceType<T2>

Definition at line 145 of file compile_time.hpp.

Member Function Documentation

◆ construct() [1/2]

template<typename T1 , typename T2 >
template<size_t N>
static constexpr auto ct::const_map_twoway< T1, T2 >::construct ( const std::array< init_type, N > &  init)
inlinestaticconstexpr

Definition at line 160 of file compile_time.hpp.

References init().

◆ construct() [2/2]

template<typename T1 , typename T2 >
template<size_t N>
static constexpr auto ct::const_map_twoway< T1, T2 >::construct ( init_type const (&)  init[N])
inlinestaticconstexpr

Definition at line 155 of file compile_time.hpp.

References init(), and compile_time_bits::make_array().


The documentation for this struct was generated from the following file:
Modified on Tue Jul 16 13:17:02 2024 by modify_doxy.py rev. 669887