Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/bind/arg.hpp @ 133:4acb5d8d80b6 tip
Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author | Chris Cannam |
---|---|
date | Tue, 30 Jul 2019 12:25:44 +0100 |
parents | c530137014c0 |
children |
rev | line source |
---|---|
Chris@16 | 1 #ifndef BOOST_BIND_ARG_HPP_INCLUDED |
Chris@16 | 2 #define BOOST_BIND_ARG_HPP_INCLUDED |
Chris@16 | 3 |
Chris@16 | 4 // MS compatible compilers support #pragma once |
Chris@16 | 5 |
Chris@16 | 6 #if defined(_MSC_VER) && (_MSC_VER >= 1020) |
Chris@16 | 7 # pragma once |
Chris@16 | 8 #endif |
Chris@16 | 9 |
Chris@16 | 10 // |
Chris@16 | 11 // bind/arg.hpp |
Chris@16 | 12 // |
Chris@16 | 13 // Copyright (c) 2002 Peter Dimov and Multi Media Ltd. |
Chris@16 | 14 // |
Chris@16 | 15 // Distributed under the Boost Software License, Version 1.0. (See |
Chris@16 | 16 // accompanying file LICENSE_1_0.txt or copy at |
Chris@16 | 17 // http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 18 // |
Chris@16 | 19 // See http://www.boost.org/libs/bind/bind.html for documentation. |
Chris@16 | 20 // |
Chris@16 | 21 |
Chris@16 | 22 #include <boost/config.hpp> |
Chris@16 | 23 #include <boost/is_placeholder.hpp> |
Chris@101 | 24 #include <boost/static_assert.hpp> |
Chris@16 | 25 |
Chris@16 | 26 namespace boost |
Chris@16 | 27 { |
Chris@16 | 28 |
Chris@16 | 29 template< int I > struct arg |
Chris@16 | 30 { |
Chris@16 | 31 arg() |
Chris@16 | 32 { |
Chris@16 | 33 } |
Chris@16 | 34 |
Chris@16 | 35 template< class T > arg( T const & /* t */ ) |
Chris@16 | 36 { |
Chris@101 | 37 BOOST_STATIC_ASSERT( I == is_placeholder<T>::value ); |
Chris@16 | 38 } |
Chris@16 | 39 }; |
Chris@16 | 40 |
Chris@16 | 41 template< int I > bool operator==( arg<I> const &, arg<I> const & ) |
Chris@16 | 42 { |
Chris@16 | 43 return true; |
Chris@16 | 44 } |
Chris@16 | 45 |
Chris@16 | 46 #if !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION ) |
Chris@16 | 47 |
Chris@16 | 48 template< int I > struct is_placeholder< arg<I> > |
Chris@16 | 49 { |
Chris@16 | 50 enum _vt { value = I }; |
Chris@16 | 51 }; |
Chris@16 | 52 |
Chris@16 | 53 template< int I > struct is_placeholder< arg<I> (*) () > |
Chris@16 | 54 { |
Chris@16 | 55 enum _vt { value = I }; |
Chris@16 | 56 }; |
Chris@16 | 57 |
Chris@16 | 58 #endif |
Chris@16 | 59 |
Chris@16 | 60 } // namespace boost |
Chris@16 | 61 |
Chris@16 | 62 #endif // #ifndef BOOST_BIND_ARG_HPP_INCLUDED |