1 #ifndef BOOST_THREAD_EXPERIMENTAL_PARALLEL_V1_EXCEPTION_LIST_HPP
2 #define BOOST_THREAD_EXPERIMENTAL_PARALLEL_V1_EXCEPTION_LIST_HPP
4 //////////////////////////////////////////////////////////////////////////////
6 // (C) Copyright Vicente J. Botet Escriba 2014. Distributed under the Boost
7 // Software License, Version 1.0. (See accompanying file
8 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
10 // See http://www.boost.org/libs/thread for documentation.
12 //////////////////////////////////////////////////////////////////////////////
14 #include <boost/thread/detail/config.hpp>
15 #include <boost/thread/experimental/parallel/v1/inline_namespace.hpp>
17 #include <boost/exception_ptr.hpp>
21 #include <boost/config/abi_prefix.hpp>
25 namespace experimental
29 BOOST_THREAD_INLINE_NAMESPACE(v1)
32 class BOOST_SYMBOL_VISIBLE exception_list: public std::exception
34 typedef std::list<exception_ptr> exception_ptr_list;
35 exception_ptr_list list_;
37 typedef exception_ptr_list::const_iterator const_iterator;
39 ~exception_list() BOOST_NOEXCEPT_OR_NOTHROW {}
41 void add(exception_ptr const& e)
45 size_t size() const BOOST_NOEXCEPT
49 const_iterator begin() const BOOST_NOEXCEPT
53 const_iterator end() const BOOST_NOEXCEPT
57 const char* what() const BOOST_NOEXCEPT_OR_NOTHROW
59 return "exception_list";
68 #include <boost/config/abi_suffix.hpp>