NCBI C++ ToolKit
Public Types | Static Public Member Functions | List of all members
compile_time_bits::straight_map_traits< _T1, _T2 > Struct Template Reference

Search Toolkit Book for compile_time_bits::straight_map_traits

#include <util/impl/compile_time_bits.hpp>

Public Types

using HT1 = DeduceType< _T1 >
 
using HT2 = DeduceType< _T2 >
 
using pair_type = DeduceType< std::pair< HT1, HT2 > >
 
using hashed_key_type = HT1
 
using value_type = typename pair_type::value_type
 
using hash_type = typename HT1::hash_type
 
using init_type = typename pair_type::init_type
 
using init_key_type = typename HT1::init_type
 
using key_type = typename HT1::value_type
 

Static Public Member Functions

static constexpr hash_type get_init_hash (const init_type &v)
 
static constexpr const key_typeget_key (const value_type &v)
 
static constexpr const key_typeget_key (const key_type &v)
 
static constexpr value_type construct (const init_type &v)
 

Detailed Description

template<typename _T1, typename _T2>
struct compile_time_bits::straight_map_traits< _T1, _T2 >

Definition at line 413 of file compile_time_bits.hpp.

Member Typedef Documentation

◆ hash_type

template<typename _T1 , typename _T2 >
using compile_time_bits::straight_map_traits< _T1, _T2 >::hash_type = typename HT1::hash_type

Definition at line 421 of file compile_time_bits.hpp.

◆ hashed_key_type

template<typename _T1 , typename _T2 >
using compile_time_bits::straight_map_traits< _T1, _T2 >::hashed_key_type = HT1

Definition at line 418 of file compile_time_bits.hpp.

◆ HT1

template<typename _T1 , typename _T2 >
using compile_time_bits::straight_map_traits< _T1, _T2 >::HT1 = DeduceType<_T1>

Definition at line 415 of file compile_time_bits.hpp.

◆ HT2

template<typename _T1 , typename _T2 >
using compile_time_bits::straight_map_traits< _T1, _T2 >::HT2 = DeduceType<_T2>

Definition at line 416 of file compile_time_bits.hpp.

◆ init_key_type

template<typename _T1 , typename _T2 >
using compile_time_bits::straight_map_traits< _T1, _T2 >::init_key_type = typename HT1::init_type

Definition at line 423 of file compile_time_bits.hpp.

◆ init_type

template<typename _T1 , typename _T2 >
using compile_time_bits::straight_map_traits< _T1, _T2 >::init_type = typename pair_type::init_type

Definition at line 422 of file compile_time_bits.hpp.

◆ key_type

template<typename _T1 , typename _T2 >
using compile_time_bits::straight_map_traits< _T1, _T2 >::key_type = typename HT1::value_type

Definition at line 424 of file compile_time_bits.hpp.

◆ pair_type

template<typename _T1 , typename _T2 >
using compile_time_bits::straight_map_traits< _T1, _T2 >::pair_type = DeduceType<std::pair<HT1, HT2> >

Definition at line 417 of file compile_time_bits.hpp.

◆ value_type

template<typename _T1 , typename _T2 >
using compile_time_bits::straight_map_traits< _T1, _T2 >::value_type = typename pair_type::value_type

Definition at line 420 of file compile_time_bits.hpp.

Member Function Documentation

◆ construct()

template<typename _T1 , typename _T2 >
static constexpr value_type compile_time_bits::straight_map_traits< _T1, _T2 >::construct ( const init_type v)
inlinestaticconstexpr

Definition at line 438 of file compile_time_bits.hpp.

◆ get_init_hash()

template<typename _T1 , typename _T2 >
static constexpr hash_type compile_time_bits::straight_map_traits< _T1, _T2 >::get_init_hash ( const init_type v)
inlinestaticconstexpr

Definition at line 426 of file compile_time_bits.hpp.

◆ get_key() [1/2]

template<typename _T1 , typename _T2 >
static constexpr const key_type& compile_time_bits::straight_map_traits< _T1, _T2 >::get_key ( const key_type v)
inlinestaticconstexpr

Definition at line 434 of file compile_time_bits.hpp.

◆ get_key() [2/2]

template<typename _T1 , typename _T2 >
static constexpr const key_type& compile_time_bits::straight_map_traits< _T1, _T2 >::get_key ( const value_type v)
inlinestaticconstexpr

Definition at line 430 of file compile_time_bits.hpp.


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