Init
This commit is contained in:
44
cppdraft/futures/future/error.md
Normal file
44
cppdraft/futures/future/error.md
Normal file
@@ -0,0 +1,44 @@
|
||||
[futures.future.error]
|
||||
|
||||
# 32 Concurrency support library [[thread]](./#thread)
|
||||
|
||||
## 32.10 Futures [[futures]](futures#future.error)
|
||||
|
||||
### 32.10.4 Class future_error [futures.future.error]
|
||||
|
||||
[ð](#lib:future_error)
|
||||
|
||||
namespace std {class future_error : public logic_error {public:explicit future_error(future_errc e); const error_code& code() const noexcept; const char* what() const noexcept; private: error_code ec_; // *exposition only*};}
|
||||
|
||||
[ð](#lib:future_error,constructor)
|
||||
|
||||
`explicit future_error(future_errc e);
|
||||
`
|
||||
|
||||
[1](#1)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/threads.tex#L11282)
|
||||
|
||||
*Effects*: Initializes ec_ with make_error_code(e)[.](#1.sentence-1)
|
||||
|
||||
[ð](#lib:code,future_error)
|
||||
|
||||
`const error_code& code() const noexcept;
|
||||
`
|
||||
|
||||
[2](#2)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/threads.tex#L11293)
|
||||
|
||||
*Returns*: ec_[.](#2.sentence-1)
|
||||
|
||||
[ð](#lib:what,future_error)
|
||||
|
||||
`const char* what() const noexcept;
|
||||
`
|
||||
|
||||
[3](#3)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/threads.tex#L11304)
|
||||
|
||||
*Returns*: An ntbs incorporating code().message()[.](#3.sentence-1)
|
||||
Reference in New Issue
Block a user