CppCommon  1.0.4.1
C++ Common Library
validate_aligned_storage.h
Go to the documentation of this file.
1 
9 #ifndef CPPCOMMON_UTILITY_VALIDATE_ALIGNED_STORAGE_H
10 #define CPPCOMMON_UTILITY_VALIDATE_ALIGNED_STORAGE_H
11 
12 namespace CppCommon {
13 
15 template <size_t ImplSize, size_t ImplAlign, size_t StorageSize, size_t StorageAlign, class Enable = void>
17 
20 template <size_t ImplSize, const size_t ImplAlign, size_t StorageSize, size_t StorageAlign>
21 class ValidateAlignedStorage<ImplSize, ImplAlign, StorageSize, StorageAlign, typename std::enable_if<(StorageSize >= ImplSize) && ((StorageAlign % ImplAlign) == 0)>::type> {};
23 
24 } // namespace CppCommon
25 
26 #endif // CPPCOMMON_UTILITY_VALIDATE_ALIGNED_STORAGE_H
C++ Common project definitions.
Definition: token_bucket.h:15