Pair.hpp 445 B

12345678910111213141516171819202122232425
  1. ///
  2. /// \file Archive/Pair.hpp
  3. ///
  4. /// Pair support for serialization.
  5. ///
  6. /// \copyright
  7. /// Copyright (c) 2016 Josh Blum
  8. /// SPDX-License-Identifier: BSL-1.0
  9. ///
  10. #pragma once
  11. #include <Pothos/Config.hpp>
  12. #include <utility> //pair
  13. namespace Pothos {
  14. namespace serialization {
  15. template <typename Archive, typename F, typename L>
  16. void serialize(Archive &ar, std::pair<F, L> &t, const unsigned int)
  17. {
  18. ar & t.first;
  19. ar & t.second;
  20. }
  21. }}