annotate DEPENDENCIES/generic/include/boost/container/detail/value_init.hpp @ 16:2665513ce2d3

Add boost headers
author Chris Cannam
date Tue, 05 Aug 2014 11:11:38 +0100
parents
children c530137014c0
rev   line source
Chris@16 1 //////////////////////////////////////////////////////////////////////////////
Chris@16 2 //
Chris@16 3 // (C) Copyright Ion Gaztanaga 2005-2012.
Chris@16 4 //
Chris@16 5 // Distributed under the Boost Software License, Version 1.0.
Chris@16 6 // (See accompanying file LICENSE_1_0.txt or copy at
Chris@16 7 // http://www.boost.org/LICENSE_1_0.txt)
Chris@16 8 //
Chris@16 9 // See http://www.boost.org/libs/container for documentation.
Chris@16 10 //
Chris@16 11 //////////////////////////////////////////////////////////////////////////////
Chris@16 12
Chris@16 13 #ifndef BOOST_CONTAINER_DETAIL_VALUE_INIT_HPP
Chris@16 14 #define BOOST_CONTAINER_DETAIL_VALUE_INIT_HPP
Chris@16 15
Chris@16 16 #if defined(_MSC_VER)
Chris@16 17 # pragma once
Chris@16 18 #endif
Chris@16 19
Chris@16 20 #include "config_begin.hpp"
Chris@16 21 #include <boost/container/detail/workaround.hpp>
Chris@16 22
Chris@16 23 namespace boost {
Chris@16 24 namespace container {
Chris@16 25 namespace container_detail {
Chris@16 26
Chris@16 27 template<class T>
Chris@16 28 struct value_init
Chris@16 29 {
Chris@16 30 value_init()
Chris@16 31 : m_t()
Chris@16 32 {}
Chris@16 33
Chris@16 34 operator T &() { return m_t; }
Chris@16 35
Chris@16 36 T m_t;
Chris@16 37 };
Chris@16 38
Chris@16 39 } //namespace container_detail {
Chris@16 40 } //namespace container {
Chris@16 41 } //namespace boost {
Chris@16 42
Chris@16 43 #include <boost/container/detail/config_end.hpp>
Chris@16 44
Chris@16 45 #endif //#ifndef BOOST_CONTAINER_DETAIL_VALUE_INIT_HPP