ttg 1.0.0
Template Task Graph (TTG): flowgraph-based programming model for high-performance distributed-memory algorithms
Loading...
Searching...
No Matches
list.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_LIST_H
7#define TTG_SERIALIZATION_STD_LIST_H
8
11
12#ifdef TTG_SERIALIZATION_SUPPORTS_MADNESS
13// MADNESS supports std::list serialization by default
14#endif
15
16#ifdef TTG_SERIALIZATION_SUPPORTS_BOOST
17#include <boost/serialization/list.hpp>
18
19namespace ttg::detail {
20 template <typename Archive, typename T, typename A>
21 inline static constexpr bool is_stlcontainer_boost_serializable_v<Archive, std::list<T, A>> =
22 is_boost_serializable_v<Archive, T>&& is_boost_serializable_v<Archive, A>;
23 template <typename Archive, typename T, std::size_t N>
24 inline static constexpr bool is_stlcontainer_boost_serializable_v<Archive, const std::list<T, A>> =
25 is_boost_serializable_v<Archive, const T>&& is_boost_serializable_v<Archive, const A>;
26} // namespace ttg::detail
27
28#endif // TTG_SERIALIZATION_SUPPORTS_BOOST
29
30#endif // TTG_SERIALIZATION_STD_LIST_H