• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1+++
2title = "Constexpr domain source"
3weight = 60
4+++
5
6Back in [The constructor]({{< relref "/experimental/worked-example/constructor" >}}), we
7declared but did not implement a `.get()` function which returns a constexpr static
8instance of the domain. We implement this now:
9
10{{% snippet "experimental_status_code.cpp" "constexpr_source" %}}
11
12As this is 100% constexpr, it can be (and is under optimisation) implemented entirely
13in the mind of the compiler with no run time representation.
14