Spatial C++ Library
Generic Multi-Dimensional Containers and Spatial Operations
spatial_assign.hpp
1 // -*- C++ -*-
2 //
3 // Copyright Sylvain Bougerel 2009 - 2013.
4 // Distributed under the Boost Software License, Version 1.0.
5 // (See accompanying file COPYING or copy at
6 // http://www.boost.org/LICENSE_1_0.txt)
7 
15 #include <utility>
16 
17 #ifndef SPATIAL_ASSIGN_HPP
18 #define SPATIAL_ASSIGN_HPP
19 
20 namespace spatial
21 {
22  namespace details
23  {
24  template <typename Type1, typename Type2>
25  inline void
26  assign(Type1& first, Type2& second, const std::pair<Type1, Type2>& pair)
27  {
28  first = pair.first;
29  second = pair.second;
30  }
31  }
32 }
33 
34 #endif // SPATIAL_ASSIGN_HPP
void assign(Type1 &first, Type2 &second, const std::pair< Type1, Type2 > &pair)
The main namespace used in the library.
Definition: algorithm.hpp:23