]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/assign/include/boost/assign/std/queue.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / assign / include / boost / assign / std / queue.hpp
CommitLineData
7c673cae
FG
1// Boost.Assign library
2//
3// Copyright Thorsten Ottosen 2003-2004. Use, modification and
4// distribution is subject to the Boost Software License, Version
5// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
6// http://www.boost.org/LICENSE_1_0.txt)
7//
8// For more information, see http://www.boost.org/libs/assign/
9//
10
11
12#ifndef BOOST_ASSIGN_STD_QUEUE_HPP
13#define BOOST_ASSIGN_STD_QUEUE_HPP
14
15#if defined(_MSC_VER)
16# pragma once
17#endif
18
19#include <boost/assign/list_inserter.hpp>
20#include <boost/config.hpp>
21#include <queue>
22
23namespace boost
24{
25namespace assign
26{
27
28 template< class V, class C, class V2 >
29 inline list_inserter< assign_detail::call_push< std::queue<V,C> >, V >
30 operator+=( std::queue<V,C>& c, V2 v )
31 {
32 return push( c )( v );
33 }
34
35 template< class V, class C, class V2 >
36 inline list_inserter< assign_detail::call_push< std::priority_queue<V,C> >, V >
37 operator+=( std::priority_queue<V,C>& c, V2 v )
38 {
39 return push( c )( v );
40 }
41
42}
43}
44
45#endif