pair.hpp 468 Bytes
Newer Older
Matthieu Dorier's avatar
Matthieu Dorier committed
1 2 3 4 5 6 7
/*
 * (C) 2017 The University of Chicago
 * 
 * See COPYRIGHT in top-level directory.
 */
#ifndef __THALLIUM_PAIR_SERIALIZE_HPP
#define __THALLIUM_PAIR_SERIALIZE_HPP
8

Matthieu Dorier's avatar
Matthieu Dorier committed
9 10 11 12 13 14
#include <thallium/config.hpp>

#ifdef THALLIUM_USE_CEREAL
    #include <cereal/types/utility.hpp>
#else

15 16 17 18 19
#include <utility>

namespace thallium {

template<typename A, typename T1, typename T2>
20
inline void serialize(A& a, std::pair<T1,T2>& p) {
21 22
    a & p.first;
    a & p.second;
23 24 25 26 27
}

}

#endif
Matthieu Dorier's avatar
Matthieu Dorier committed
28
#endif