Classes | Public Types | Static Public Attributes | List of all members
PLMD::gch::default_buffer_size< Allocator > Struct Template Reference

#include <small_vector.h>

Classes

struct  is_complete
 
struct  is_complete< U, decltype(static_cast< void >(sizeof(U)))>
 

Public Types

using allocator_type = Allocator
 
using empty_small_vector = small_vector< value_type, 0, allocator_type >
 
using value_type = typename std::allocator_traits< allocator_type >::value_type
 

Static Public Attributes

static constexpr unsigned buffer_max = 256
 
static constexpr unsigned ideal_buffer = ideal_total - sizeof (empty_small_vector)
 
static constexpr unsigned ideal_total = PLUMED_GCH_SMALL_VECTOR_DEFAULT_SIZE
 
static constexpr unsigned value = (sizeof (value_type) <= ideal_buffer) ? (ideal_buffer / sizeof (value_type)) : 1
 

Member Typedef Documentation

◆ allocator_type

template<typename Allocator >
using PLMD::gch::default_buffer_size< Allocator >::allocator_type = Allocator

◆ empty_small_vector

template<typename Allocator >
using PLMD::gch::default_buffer_size< Allocator >::empty_small_vector = small_vector<value_type, 0, allocator_type>

◆ value_type

template<typename Allocator >
using PLMD::gch::default_buffer_size< Allocator >::value_type = typename std::allocator_traits<allocator_type>::value_type

Member Data Documentation

◆ buffer_max

template<typename Allocator >
constexpr unsigned PLMD::gch::default_buffer_size< Allocator >::buffer_max = 256
staticconstexpr

◆ ideal_buffer

template<typename Allocator >
constexpr unsigned PLMD::gch::default_buffer_size< Allocator >::ideal_buffer = ideal_total - sizeof (empty_small_vector)
staticconstexpr

◆ ideal_total

template<typename Allocator >
constexpr unsigned PLMD::gch::default_buffer_size< Allocator >::ideal_total = PLUMED_GCH_SMALL_VECTOR_DEFAULT_SIZE
staticconstexpr

◆ value

template<typename Allocator >
constexpr unsigned PLMD::gch::default_buffer_size< Allocator >::value = (sizeof (value_type) <= ideal_buffer) ? (ideal_buffer / sizeof (value_type)) : 1
staticconstexpr

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