Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/align/detail/alignment_of.hpp @ 120:4729c8589274 emscripten-piper
Add piper builds
| author | Chris Cannam |
|---|---|
| date | Fri, 11 Nov 2016 15:49:32 +0000 |
| parents | f46d142149f5 |
| children |
| rev | line source |
|---|---|
| Chris@102 | 1 /* |
| Chris@102 | 2 (c) 2014 Glen Joseph Fernandes |
| Chris@102 | 3 glenjofe at gmail dot com |
| Chris@102 | 4 |
| Chris@102 | 5 Distributed under the Boost Software |
| Chris@102 | 6 License, Version 1.0. |
| Chris@102 | 7 http://boost.org/LICENSE_1_0.txt |
| Chris@102 | 8 */ |
| Chris@102 | 9 #ifndef BOOST_ALIGN_DETAIL_ALIGNMENT_OF_HPP |
| Chris@102 | 10 #define BOOST_ALIGN_DETAIL_ALIGNMENT_OF_HPP |
| Chris@102 | 11 |
| Chris@102 | 12 #include <boost/align/detail/min_size.hpp> |
| Chris@102 | 13 #include <boost/align/detail/offset_object.hpp> |
| Chris@102 | 14 |
| Chris@102 | 15 namespace boost { |
| Chris@102 | 16 namespace alignment { |
| Chris@102 | 17 namespace detail { |
| Chris@102 | 18 template<class T> |
| Chris@102 | 19 struct alignment_of |
| Chris@102 | 20 : min_size<sizeof(T), |
| Chris@102 | 21 sizeof(offset_object<T>) - sizeof(T)>::type { |
| Chris@102 | 22 }; |
| Chris@102 | 23 } |
| Chris@102 | 24 } |
| Chris@102 | 25 } |
| Chris@102 | 26 |
| Chris@102 | 27 #endif |
