:relfileprefix: ../../../
[#CDC6C64E55BB09381190C3A7134EF257B7C9FB51]

= Function error_code_checker::error_code_checker

pass:v,q[Constructs the predicate.]


== Synopsis

Declared in header `<https://github.com/Lastique/scope/blob/develop/include/boost/scope/error_code_checker.hpp#L69[boost/scope/error_code_checker.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
error_code_checker(ErrorCode& ec) noexcept;
----

== Description

pass:v,q[Upon construction, the predicate saves a reference to the external error code object.]
pass:v,q[The referenced object must remain valid for the whole lifetime duration of the predicate.]
pass:v,q[**Throws:** Nothing.]




== Parameters

|===
| Name | Type 

| *ec*
| `ErrorCode&`

|===



