rapidyaml  0.16.0
parseandemitYAML,anddoitfast
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 394 of file format.hpp.

Constructor & Destructor Documentation

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

Definition at line 398 of file format.hpp.

399  :
400  blob_<T>(data),
401  alignment(alignment_)
402  {
403  C4_ASSERT_MSG(alignment > 0 && (alignment & (alignment - 1)) == 0, "alignment must be a power of two");
404  }

Member Data Documentation

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

Definition at line 396 of file format.hpp.

Referenced by c4::from_chars(), and c4::to_chars().


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