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