unwrap.hpp
来自「boost库提供标准的C++ API 配合dev c++使用,功能更加强大」· HPP 代码 · 共 47 行
HPP
47 行
//-----------------------------------------------------------------------------
// boost mpl/aux_/unwrap.hpp header file
// See http://www.boost.org for updates, documentation, and revision history.
//-----------------------------------------------------------------------------
//
// Copyright (c) 2001, 2002 Peter Dimov and Multi Media Ltd.
// Copyright (c) 2001 David Abrahams
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all copies.
// This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
#ifndef BOOST_MPL_AUX_UNWRAP_HPP_INCLUDED
#define BOOST_MPL_AUX_UNWRAP_HPP_INCLUDED
#include "boost/ref.hpp"
namespace boost { namespace mpl { namespace aux {
template< typename F >
inline
F& unwrap(F& f, long)
{
return f;
}
template< typename F >
inline
F&
unwrap(reference_wrapper<F>& f, int)
{
return f;
}
template< typename F >
inline
F&
unwrap(reference_wrapper<F> const& f, int)
{
return f;
}
}}} // namespace boost::mpl::aux
#endif // BOOST_MPL_AUX_UNWRAP_HPP_INCLUDED
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?