cxxomfort  rel.20210622
Simple backports for C++ - http://ryan.gulix.cl/fossil.cgi/cxxomfort/
Namespaces | Macros
alignof.hpp File Reference

Implementation details for "alignof" emulation. More...

Namespaces

 cxxomfort
 Namespace of the cxxomfort library.
 
 cxxomfort::cxxostd
 Backports made available by cxxomfort.
 

Macros

#define alignof(x)   (cxxomfort::cxxostd::alignof_impl<x>::value)
 Provides alignof(x) in platforms lacking the directive. More...
 

Detailed Description

Implementation details for "alignof" emulation.

Macro Definition Documentation

◆ alignof

#define alignof (   x)    (cxxomfort::cxxostd::alignof_impl<x>::value)

Provides alignof(x) in platforms lacking the directive.

Note
This definition relies on the existence of an existing intrinsic __alignof that would have similar semantics.

Related utilities: alignas , aligned_storage .