iffl  1.3.4
Implements Intrusive Flat Forward List container
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
iffl::offset_with_aligment< ALIGNMENT_V > Class Template Reference

Vocabulary type that describes an offset in a larger buffer and template parameter that specifies element's type alignment requirements. More...

#include <iffl_common.h>

Public Member Functions

constexpr size_t offset_aligned () const noexcept
 
constexpr size_t padding_size () const noexcept
 

Public Attributes

size_t offset { 0 }
 Not padded offset in a buffer.
 

Static Public Attributes

static constexpr size_t const alignment { ALIGNMENT_V }
 

Detailed Description

template<size_t ALIGNMENT_V>
class iffl::offset_with_aligment< ALIGNMENT_V >

Vocabulary type that describes an offset in a larger buffer and template parameter that specifies element's type alignment requirements.

Template Parameters
ALIGNMENT_V- alignment requirements of the element's type

Member Function Documentation

◆ offset_aligned()

template<size_t ALIGNMENT_V>
constexpr size_t iffl::offset_with_aligment< ALIGNMENT_V >::offset_aligned ( ) const
inlinenoexcept
Returns
Returns aligned offset in a buffer

◆ padding_size()

template<size_t ALIGNMENT_V>
constexpr size_t iffl::offset_with_aligment< ALIGNMENT_V >::padding_size ( ) const
inlinenoexcept
Returns
Returns padding size

Member Data Documentation

◆ alignment

template<size_t ALIGNMENT_V>
constexpr size_t const iffl::offset_with_aligment< ALIGNMENT_V >::alignment { ALIGNMENT_V }
static

Element's type alignment requirements


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