annotate DEPENDENCIES/generic/include/boost/thread/exceptional_ptr.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents f46d142149f5
children
rev   line source
Chris@102 1 // Distributed under the Boost Software License, Version 1.0. (See
Chris@102 2 // accompanying file LICENSE_1_0.txt or copy at
Chris@102 3 // http://www.boost.org/LICENSE_1_0.txt)
Chris@102 4 // (C) Copyright 2014 Vicente J. Botet Escriba
Chris@102 5
Chris@102 6 #ifndef BOOST_THREAD_EXCEPTIONAL_PTR_HPP
Chris@102 7 #define BOOST_THREAD_EXCEPTIONAL_PTR_HPP
Chris@102 8
Chris@102 9 #include <boost/thread/detail/move.hpp>
Chris@102 10 #include <boost/exception_ptr.hpp>
Chris@102 11
Chris@102 12 #include <boost/config/abi_prefix.hpp>
Chris@102 13
Chris@102 14 namespace boost
Chris@102 15 {
Chris@102 16 struct exceptional_ptr {
Chris@102 17 exception_ptr ptr_;
Chris@102 18
Chris@102 19 exceptional_ptr() : ptr_() {}
Chris@102 20 explicit exceptional_ptr(exception_ptr ex) : ptr_(ex) {}
Chris@102 21 template <class E>
Chris@102 22 explicit exceptional_ptr(BOOST_FWD_REF(E) ex) : ptr_(boost::copy_exception(boost::forward<E>(ex))) {}
Chris@102 23 };
Chris@102 24
Chris@102 25 template <class E>
Chris@102 26 inline exceptional_ptr make_exceptional(BOOST_FWD_REF(E) ex) {
Chris@102 27 return exceptional_ptr(boost::forward<E>(ex));
Chris@102 28 }
Chris@102 29
Chris@102 30 inline exceptional_ptr make_exceptional(exception_ptr ex)
Chris@102 31 {
Chris@102 32 return exceptional_ptr(ex);
Chris@102 33 }
Chris@102 34
Chris@102 35 inline exceptional_ptr make_exceptional()
Chris@102 36 {
Chris@102 37 return exceptional_ptr();
Chris@102 38 }
Chris@102 39
Chris@102 40 } // namespace boost
Chris@102 41
Chris@102 42 #include <boost/config/abi_suffix.hpp>
Chris@102 43
Chris@102 44 #endif