Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 09:42:51

0001 /*
0002 Copyright 2014-2015 Glen Joseph Fernandes
0003 (glenjofe@gmail.com)
0004 
0005 Distributed under the Boost Software License, Version 1.0.
0006 (http://www.boost.org/LICENSE_1_0.txt)
0007 */
0008 #ifndef BOOST_ALIGN_DETAIL_ALIGNMENT_OF_MSVC_HPP
0009 #define BOOST_ALIGN_DETAIL_ALIGNMENT_OF_MSVC_HPP
0010 
0011 #include <boost/align/detail/min_size.hpp>
0012 
0013 namespace boost {
0014 namespace alignment {
0015 namespace detail {
0016 
0017 template<class T>
0018 struct offset_value {
0019     T first;
0020     char value;
0021     T second;
0022 };
0023 
0024 template<class T>
0025 struct alignment_of
0026     : min_size<sizeof(T), sizeof(offset_value<T>) - (sizeof(T) << 1)> { };
0027 
0028 } /* detail */
0029 } /* alignment */
0030 } /* boost */
0031 
0032 #endif