Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:30:14

0001 //////////////////////////////////////////////////////////////////////////////
0002 //
0003 // (C) Copyright Ion Gaztanaga 2005-2013.
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/container for documentation.
0010 //
0011 //////////////////////////////////////////////////////////////////////////////
0012 
0013 #ifndef BOOST_CONTAINER_DETAIL_VALUE_INIT_HPP
0014 #define BOOST_CONTAINER_DETAIL_VALUE_INIT_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 #include <boost/container/detail/config_begin.hpp>
0025 #include <boost/container/detail/workaround.hpp>
0026 
0027 namespace boost {
0028 namespace container {
0029 namespace dtl {
0030 
0031 template<class T>
0032 struct value_init
0033 {
0034    value_init()
0035       : m_t()
0036    {}
0037 
0038    operator T &() { return m_t; }
0039 
0040    T &get() { return m_t; }
0041 
0042    T m_t;
0043 };
0044 
0045 }  //namespace dtl {
0046 }  //namespace container {
0047 }  //namespace boost {
0048 
0049 #include <boost/container/detail/config_end.hpp>
0050 
0051 #endif   //#ifndef BOOST_CONTAINER_DETAIL_VALUE_INIT_HPP