Skip to content

Commit

Permalink
Merge pull request #16269 from bangerth/requires
Browse files Browse the repository at this point in the history
Annotate Lazy functions for 'requires' clauses.
  • Loading branch information
masterleinad committed Nov 16, 2023
2 parents 70f4152 + de172ca commit 0452d85
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/deal.II/base/lazy.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ class Lazy
* of the calling threads and that after completion the initialization
* result (which is stored in the std::optional) is visible on all
* threads.
*
* @dealiiConceptRequires{std::is_invocable_r_v<T, Callable>}
*/
template <typename Callable>
void
Expand Down Expand Up @@ -184,6 +186,8 @@ class Lazy
*
* @post The underlying object is initialized, meaning, has_value()
* returns true.
*
* @dealiiConceptRequires{std::is_invocable_r_v<T, Callable>}
*/
template <typename Callable>
const T &
Expand All @@ -193,6 +197,8 @@ class Lazy

/**
* Variant of above function that returns a non-const reference.
*
* @dealiiConceptRequires{std::is_invocable_r_v<T, Callable>}
*/
template <typename Callable>
DEAL_II_ALWAYS_INLINE inline T &
Expand Down

0 comments on commit 0452d85

Please sign in to comment.