Sleipnir C++ API
Loading...
Searching...
No Matches
sleipnir::default_buffer_size< Allocator > Struct Template Reference

#include <sleipnir/util/small_vector.hpp>

Public Types

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

Static Public Attributes

static constexpr unsigned buffer_max = 256
 
static constexpr unsigned ideal_total = 64
 
static constexpr unsigned ideal_buffer
 
static constexpr unsigned value
 

Member Typedef Documentation

◆ allocator_type

template<typename Allocator >
using sleipnir::default_buffer_size< Allocator >::allocator_type = Allocator

◆ empty_small_vector

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

◆ value_type

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

Member Data Documentation

◆ buffer_max

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

◆ ideal_buffer

template<typename Allocator >
constexpr unsigned sleipnir::default_buffer_size< Allocator >::ideal_buffer
staticconstexpr
Initial value:
=
small_vector< value_type, 0, allocator_type > empty_small_vector
Definition small_vector.hpp:470
static constexpr unsigned ideal_total
Definition small_vector.hpp:478

◆ ideal_total

template<typename Allocator >
constexpr unsigned sleipnir::default_buffer_size< Allocator >::ideal_total = 64
staticconstexpr

◆ value

template<typename Allocator >
constexpr unsigned sleipnir::default_buffer_size< Allocator >::value
staticconstexpr
Initial value:
= (sizeof(value_type) <= ideal_buffer)
? (ideal_buffer / sizeof(value_type))
: 1
typename std::allocator_traits< allocator_type >::value_type value_type
Definition small_vector.hpp:469
static constexpr unsigned ideal_buffer
Definition small_vector.hpp:480

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