Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:38:37

0001 /////////////////////////////////////////////////////////////////////////////
0002 //
0003 // (C) Copyright Ion Gaztanaga  2014-2014
0004 //
0005 // Distributed under the Boost Software License, Version 1.0.
0006 //    (See accompanying file LICENSE_1_0.txt or copy at
0007 //          http://www.boost.org/LICENSE_1_0.txt)
0008 //
0009 // See http://www.boost.org/libs/intrusive for documentation.
0010 //
0011 /////////////////////////////////////////////////////////////////////////////
0012 
0013 #ifndef BOOST_INTRUSIVE_DETAIL_TWIN_HPP
0014 #define BOOST_INTRUSIVE_DETAIL_TWIN_HPP
0015 
0016 #ifndef BOOST_CONFIG_HPP
0017 #  include <boost/config.hpp>
0018 #endif
0019 
0020 #if defined(BOOST_HAS_PRAGMA_ONCE)
0021 #  pragma once
0022 #endif
0023 
0024 //A tiny utility to avoid pulling std::pair / utility for
0025 //very simple algorithms/types
0026 
0027 namespace boost {
0028 namespace intrusive {
0029 
0030 template <class T>
0031 struct twin
0032 {
0033    typedef T type;
0034    twin()
0035       : first(), second()
0036    {}
0037 
0038    twin(const type &f, const type &s)
0039       : first(f), second(s)
0040    {}
0041 
0042    T first;
0043    T second;
0044 };
0045 
0046 }  //namespace intrusive{
0047 }  //namespace boost{
0048 
0049 #endif //BOOST_INTRUSIVE_DETAIL_TWIN_HPP