make_error_code(): This function is available in the file system_error. This function creates an error_code object of the generic category from the errc enum value e. This function returns an error_code object representing the enum,value e.
Parameters: One parameter is required for this function.
__e: An enum value of the errc.
Syntax:
std::error_code std::make_error_code(std::errc __e)
Approach
C++
#include <bits/stdc++.h>using namespace std;int main(){errc e;cout << make_error_code(e) << "\n";return 0;}
Output: generic:0
No comments:
Post a Comment