Skip to content

Commit

Permalink
README.md: Mention lazy_init.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrgfogh committed Apr 13, 2024
1 parent 79029d4 commit cfb7c02
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
The classes in this library make it easier to enforce envariants in larger classes.
None of them serve a business need directly, but they all make it easier to write classes that do.

## `propagate_const`
## `propagate_const<PointerType>`

Ensures that a const pointer also points to a const object.

This type has been suggested as an addition to C++'s standard library. (Proposal [N4388](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4388.html))

## `not_null`
## `not_null<PointerType>`

Ensures that a pointer can never be null.
Ensures that a pointer can never be null.

## `lazy_init<T>`

Ensures that the wrapped data is initialized exactly once, in a thread- and exception safe manner.

0 comments on commit cfb7c02

Please sign in to comment.