vector.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_VECTOR_H
6 #define TTG_SERIALIZATION_STD_VECTOR_H
7 
10 
11 #ifdef TTG_SERIALIZATION_SUPPORTS_MADNESS
12 // MADNESS supports std::vector serialization by default
13 #endif
14 
15 #ifdef TTG_SERIALIZATION_SUPPORTS_BOOST
16 #include <boost/serialization/vector.hpp>
17 
18 namespace ttg::detail {
19  template <typename Archive, typename T, typename A>
20  inline static constexpr bool is_stlcontainer_boost_serializable_v<Archive, std::vector<T, A>> =
21  is_boost_serializable_v<Archive, T>&& is_boost_serializable_v<Archive, A>;
22  template <typename Archive, typename T, typename A>
23  inline static constexpr bool is_stlcontainer_boost_serializable_v<Archive, const std::vector<T, A>> =
24  is_boost_serializable_v<Archive, const T>&& is_boost_serializable_v<Archive, const A>;
25 } // namespace ttg::detail
26 
27 #endif // TTG_SERIALIZATION_SUPPORTS_BOOST
28 
29 #endif // TTG_SERIALIZATION_STD_VECTOR_H