os/ossrv/ossrv_pub/boost_apis/boost/assign/std/stack.hpp
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
// Boost.Assign library
sl@0
     2
//
sl@0
     3
//  Copyright Thorsten Ottosen 2003-2004. Use, modification and
sl@0
     4
//  distribution is subject to the Boost Software License, Version
sl@0
     5
//  1.0. (See accompanying file LICENSE_1_0.txt or copy at
sl@0
     6
//  http://www.boost.org/LICENSE_1_0.txt)
sl@0
     7
//
sl@0
     8
// For more information, see http://www.boost.org/libs/assign/
sl@0
     9
//
sl@0
    10
sl@0
    11
#ifndef BOOST_ASSIGN_STD_STACK_HPP
sl@0
    12
#define BOOST_ASSIGN_STD_STACK_HPP
sl@0
    13
sl@0
    14
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
sl@0
    15
# pragma once
sl@0
    16
#endif
sl@0
    17
sl@0
    18
#include <boost/assign/list_inserter.hpp>
sl@0
    19
#include <boost/config.hpp>
sl@0
    20
#include <stack>
sl@0
    21
sl@0
    22
namespace boost
sl@0
    23
{
sl@0
    24
namespace assign
sl@0
    25
{
sl@0
    26
sl@0
    27
    template< class V, class C, class V2 >
sl@0
    28
    inline list_inserter< assign_detail::call_push< std::stack<V,C> >, V >
sl@0
    29
    operator+=( std::stack<V,C>& c, V2 v )
sl@0
    30
    {
sl@0
    31
       return push( c )( v );
sl@0
    32
    }
sl@0
    33
    
sl@0
    34
}
sl@0
    35
}
sl@0
    36
sl@0
    37
#endif