CRTP base that makes a derived type must‐use‐immediately and immovable.
Synopsis
Declared in <folly/lang/MustUseImmediately.h>
template<typename Derived>
struct must_use_immediately_crtp;
Description
Read the top‐of‐file doc, it's simpler to use wrap_must_use_immediately_t.
Templated to ensure all bases are distinct in a tower‐of‐wrappers, like TryAwaitable<now_task<T>>. Repeating a base would break the empty base optimization (EBO).
Type Aliases
Name |
Description |
Member tag marking the derived type as must‐use‐immediately. |
|
Alias‐safety tag marking the type as |
Member Functions
Name |
Description |
|
Constructors |
|
Destroy the CRTP base. |
Assignment operators |
Derived Classes
Name |
Description |
Wraps a Try or result to be yielded from a coroutine as its completion. |
|
Wraps a Try or result to be yielded from a coroutine as its completion. |
|
Wrap a movable |
Created with MrDocs