• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1+++
2title = "`result<T, E = varies, NoValuePolicy = policy::default_policy<T, E, void>>`"
3description = "A type alias to a `std_result<T, E, NoValuePolicy>` (standalone edition) or `boost_result<T, E, NoValuePolicy>` (Boost edition)."
4+++
5
6A type alias to either {{% api "std_result<T, E = std::error_code, NoValuePolicy = policy::default_policy<T, E, void>>" %}} (standalone edition) or {{% api "boost_result<T, E = boost::system::error_code, NoValuePolicy = policy::default_policy<T, E, void>>" %}} (Boost edition), and `policy::`{{% api "default_policy" %}}. This means that `result<T>` uses the appropriate default alias depending on which edition of Outcome is in use.
7
8*Namespace*: `BOOST_OUTCOME_V2_NAMESPACE`
9
10*Header*: `<boost/outcome/result.hpp>`
11