diff --git a/doc/reference.html b/doc/reference.html index 7b592e1..05c2102 100644 --- a/doc/reference.html +++ b/doc/reference.html @@ -370,8 +370,8 @@ this subclause.
-Returns:
error_condition( ev, *this )
.-@@ -422,10 +422,6 @@ non-member functions identifying portable error conditions.[--Note: Derived classes will typically convert
ev
- to some portableerror_category
, such asgeneric_category
, +[--Note: Derived classes will typically convert
ev
+ to some portableerror_category
, such asgeneric_category()
, and return it as anerror_condition
for that category. --end note]Throws: Nothing.
error_category
-predefined objectsPredefined objects system_category
-and generic_category
identify system specific error codes and portable error conditions, respectively.
error_code
The class error_code
describes an object used to hold error code
@@ -447,14 +443,12 @@ error_code synopsis
error_code();
error_code( val, const error_category & cat );
template <class ErrorCodeEnum
>
- error_code( ErrorCodeEnum
e,
- typename enable_if<is_error_code_enum<ErrorCodeEnum
> >::type* = 0);
+ error_code( ErrorCodeEnum
e );
// modifiers:
void assign( int val, const error_category & cat );
template<typename ErrorCodeEnum
>
- typename enable_if<is_error_code_enum<ErrorCodeEnum
>, error_code>::type &
- operator=( ErrorCodeEnum
val );;
+ error_code & operator=( ErrorCodeEnum
val );;
void clear();
// observers:
@@ -476,7 +470,7 @@ error_code constructors
error_code();
Effects: Constructs an object of type
-error_code
.Postconditions:
+val_ == 0 && cat_ == &system_category
.Postconditions:
val_ == 0 && cat_ == &system_category()
.Throws: Nothing.
error_code( int val, const error_category & cat );@@ -486,12 +480,14 @@ error_code constructors
Throws: Nothing.
template <class+ error_code(ErrorCodeEnum
> - error_code(errorCodeEnum
val, - typename enable_if<is_error_code_enum<ErrorCodeEnum
> >::type* = 0);
ErrorCodeEnum
val );
Effects: Constructs an object of type
error_code
.Postconditions:
*this == make_error_code( val )
.Throws: Nothing.
+Remarks: This constructor shall not participate in overload + resolution unless
is_error_code_enum<ErrorCodeEnum>::value
is +true
.
error_code
modifiersThrows: Nothing.
template<typename+ error_code & operator=(ErrorCodeEnum
> - typename enable_if<is_error_code_enum<ErrorCodeEnum
>, error_code>::type & - operator=(ErrorCodeEnum
val );
ErrorCodeEnum
val );
Postconditions:
*this == make_error_code( val )
.Throws: Nothing.
+Remarks: This operator shall not participate in overload resolution + unless
is_error_code_enum<ErrorCodeEnum>::value
istrue
.
void clear();
-postcondition:
+value() == 0 && category() == generic_category
postcondition:
value() == 0 && category() == + system_category()
error_code
observerserror_condition();
Effects: Constructs an object of type
-error_condition
.Postconditions:
+val_ == 0 and cat_ == &generic_category
.Postconditions:
val_ == 0 and cat_ == &generic_category()
.Throws: Nothing.
error_condition( int val, const error_category & cat );@@ -603,12 +599,14 @@ constructors
Throws: Nothing.
template <class ErrorConditionEnum> - error_condition( errorConditionEnum val, - typename enable_if<is_error_condition_enum<ErrorConditionEnum> >::type* = 0 );+ error_condition( ErrorConditionEnum e );
Effects: Constructs an object of type
-error_condition
.Postconditions:
+*this == make_error_condition( val )
.Postconditions:
*this == make_error_condition(e)
.Throws: Nothing.
+Remarks: This constructor shall not participate in overload + resolution unless
is_error_condition_enum<ErrorConditionEnum>::value
+ istrue
.
error_condition
modifiersThrows: Nothing.
template<typename ErrorConditionEnum> - typename enable_if<is_error_condition_enum<ErrorConditionEnum>, error_code>::type & - operator=( ErrorConditionEnum val );+ error_condition & operator=( ErrorConditionEnum e );
-Postconditions:
+*this == make_error_condition( val )
.Postconditions:
+*this == make_error_condition( e )
.Returns:
*this
.Throws: Nothing.
+Remarks: This operator shall not participate in overload resolution + unless
is_error_condition_enum<ErrorConditionEnum>::value
is +true
.
void clear();
-postcondition:
+value() == 0 && category() == generic_category
postcondition:
value() == 0 && category() == generic_category()
error_condition
observerserror_code make_error_code( errc::errc_t e );
-Returns:
+error_code( e, generic_category)
.Returns:
error_code( e, generic_category())
.
error_condition make_error_condition( errc::errc_t e );
-Returns:
+error_condition( static_cast<int>( e ), generic_category)
.Returns:
error_condition( static_cast<int>( e ), generic_category())
.
template <class charT, class traits> @@ -839,7 +840,7 @@ application program interfaces.
Revised -May 31, 2010 +June 29, 2010
© Copyright Beman Dawes, 2006, 2007, 2008