Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/log/detail/copy_cv.hpp @ 102:f46d142149f5
Whoops, finish that update
author | Chris Cannam |
---|---|
date | Mon, 07 Sep 2015 11:13:41 +0100 |
parents | |
children |
rev | line source |
---|---|
Chris@102 | 1 /* |
Chris@102 | 2 * Copyright Andrey Semashev 2007 - 2015. |
Chris@102 | 3 * Distributed under the Boost Software License, Version 1.0. |
Chris@102 | 4 * (See accompanying file LICENSE_1_0.txt or copy at |
Chris@102 | 5 * http://www.boost.org/LICENSE_1_0.txt) |
Chris@102 | 6 */ |
Chris@102 | 7 /*! |
Chris@102 | 8 * \file copy_cv.hpp |
Chris@102 | 9 * \author Andrey Semashev |
Chris@102 | 10 * \date 16.03.2014 |
Chris@102 | 11 * |
Chris@102 | 12 * The header defines \c copy_cv type trait which copies const/volatile qualifiers from one type to another |
Chris@102 | 13 */ |
Chris@102 | 14 |
Chris@102 | 15 #ifndef BOOST_LOG_DETAIL_COPY_CV_HPP_INCLUDED_ |
Chris@102 | 16 #define BOOST_LOG_DETAIL_COPY_CV_HPP_INCLUDED_ |
Chris@102 | 17 |
Chris@102 | 18 #include <boost/log/detail/config.hpp> |
Chris@102 | 19 #include <boost/log/detail/header.hpp> |
Chris@102 | 20 |
Chris@102 | 21 #ifdef BOOST_HAS_PRAGMA_ONCE |
Chris@102 | 22 #pragma once |
Chris@102 | 23 #endif |
Chris@102 | 24 |
Chris@102 | 25 namespace boost { |
Chris@102 | 26 |
Chris@102 | 27 BOOST_LOG_OPEN_NAMESPACE |
Chris@102 | 28 |
Chris@102 | 29 namespace aux { |
Chris@102 | 30 |
Chris@102 | 31 //! The type trait copies top level const/volatile qualifiers from \c FromT to \c ToT |
Chris@102 | 32 template< typename FromT, typename ToT > |
Chris@102 | 33 struct copy_cv |
Chris@102 | 34 { |
Chris@102 | 35 typedef ToT type; |
Chris@102 | 36 }; |
Chris@102 | 37 |
Chris@102 | 38 template< typename FromT, typename ToT > |
Chris@102 | 39 struct copy_cv< const FromT, ToT > |
Chris@102 | 40 { |
Chris@102 | 41 typedef const ToT type; |
Chris@102 | 42 }; |
Chris@102 | 43 |
Chris@102 | 44 template< typename FromT, typename ToT > |
Chris@102 | 45 struct copy_cv< volatile FromT, ToT > |
Chris@102 | 46 { |
Chris@102 | 47 typedef volatile ToT type; |
Chris@102 | 48 }; |
Chris@102 | 49 |
Chris@102 | 50 template< typename FromT, typename ToT > |
Chris@102 | 51 struct copy_cv< const volatile FromT, ToT > |
Chris@102 | 52 { |
Chris@102 | 53 typedef const volatile ToT type; |
Chris@102 | 54 }; |
Chris@102 | 55 |
Chris@102 | 56 } // namespace aux |
Chris@102 | 57 |
Chris@102 | 58 BOOST_LOG_CLOSE_NAMESPACE // namespace log |
Chris@102 | 59 |
Chris@102 | 60 } // namespace boost |
Chris@102 | 61 |
Chris@102 | 62 #include <boost/log/detail/footer.hpp> |
Chris@102 | 63 |
Chris@102 | 64 #endif // BOOST_LOG_DETAIL_COPY_CV_HPP_INCLUDED_ |