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