rapidyaml  0.12.1
parse and emit YAML, and do it fast
c4::fmt::raw_wrapper_< T > Struct Template Reference

#include <format.hpp>

Inheritance diagram for c4::fmt::raw_wrapper_< T >:

Public Member Functions

 raw_wrapper_ (blob_< T > data, size_t alignment_) noexcept
 

Public Attributes

size_t alignment
 

Detailed Description

template<class T>
struct c4::fmt::raw_wrapper_< T >

See also
blob_

Definition at line 402 of file format.hpp.

Constructor & Destructor Documentation

◆ raw_wrapper_()

template<class T >
c4::fmt::raw_wrapper_< T >::raw_wrapper_ ( blob_< T >  data,
size_t  alignment_ 
)
inlinenoexcept

Definition at line 406 of file format.hpp.

407  :
408  blob_<T>(data),
409  alignment(alignment_)
410  {
411  C4_ASSERT_MSG(alignment > 0 && (alignment & (alignment - 1)) == 0, "alignment must be a power of two");
412  }

References c4::fmt::raw_wrapper_< T >::alignment.

Member Data Documentation

◆ alignment

template<class T >
size_t c4::fmt::raw_wrapper_< T >::alignment

Definition at line 404 of file format.hpp.


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