allocator.h
Go to the documentation of this file.
1 //
2 // Created by Eduard Valeyev on 5/11/21.
3 //
4 
5 #ifndef TTG_SERIALIZATION_STD_ALLOCATOR_H
6 #define TTG_SERIALIZATION_STD_ALLOCATOR_H
7 
9 
10 #ifdef TTG_SERIALIZATION_SUPPORTS_BOOST
11 
12 namespace ttg::detail {
13  template <typename Archive, typename T>
14  inline static constexpr bool is_boost_serializable_v<Archive, std::allocator<T>> = is_boost_archive_v<Archive>;
15  template <typename Archive, typename T>
16  inline static constexpr bool is_boost_serializable_v<Archive, const std::allocator<T>> = is_boost_archive_v<Archive>;
17 } // namespace ttg::detail
18 
19 #endif // TTG_SERIALIZATION_SUPPORTS_BOOST
20 
21 #endif // TTG_SERIALIZATION_STD_ALLOCATOR_H