Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
error_code example
#include <system_error> #include <iostream> #include <string> int main() { using namespace std; error_code ec1{static_cast<int>(errc::owner_dead), system_category()}; cout << ec1.value() << " : " << ec1.message() << '\n'; error_code ec2{static_cast<int>(errc::owner_dead), generic_category()}; cout << ec2.value() << " : " << ec2.message() << '\n'; error_condition en = make_error_condition(errc::owner_dead); cout << en.value() << " : " << en.message() << '\n'; }
run
|
edit
|
history
|
help
0
#9
multiply linked list numbers
Two-phase sample with Visual C++ 2015
DCapSurfaceDesc
C++ exception
Template float/int comparison
3
codecvt wide string conversion with multibyte chars and locale + concatenation
algorithm_1
Regex pipe and tabs c++