CppCommon 1.0.5.0
C++ Common Library
Loading...
Searching...
No Matches
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
12namespace CppCommon {
13
15template <size_t ImplSize, size_t ImplAlign, size_t StorageSize, size_t StorageAlign, class Enable = void>
17
20template <size_t ImplSize, const size_t ImplAlign, size_t StorageSize, size_t StorageAlign>
21class 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.