ttg 1.0.0
Template Task Graph (TTG): flowgraph-based programming model for high-performance distributed-memory algorithms
Loading...
Searching...
No Matches
pair.h
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-3-Clause
2//
3// Created by Eduard Valeyev on 5/11/21.
4//
5
6#ifndef TTG_SERIALIZATION_STD_PAIR_H
7#define TTG_SERIALIZATION_STD_PAIR_H
8
10
11#ifdef TTG_SERIALIZATION_SUPPORTS_MADNESS
12// MADNESS supports std::pair serialization by default
13#endif
14
15#ifdef TTG_SERIALIZATION_SUPPORTS_BOOST
16#include <boost/serialization/utility.hpp>
17
18namespace ttg::detail {
19 template <typename Archive, typename T1, typename T2>
20 inline static constexpr bool is_stlcontainer_boost_serializable_v<Archive, std::pair<T1, T2>> =
21 is_boost_serializable_v<Archive, T1>&& is_boost_serializable_v<Archive, T2>;
22 template <typename Archive, typename T1, typename T2>
23 inline static constexpr bool is_stlcontainer_boost_serializable_v<Archive, const std::pair<T1, T2>> =
24 is_boost_serializable_v<Archive, const T1>&& is_boost_serializable_v<Archive, const T2>;
25} // namespace ttg::detail
26
27#endif // TTG_SERIALIZATION_SUPPORTS_BOOST
28
29#endif // TTG_SERIALIZATION_STD_PAIR_H