Skip to content

class C<T> demo

template <typename T>
struct C { … }

A wrapper that forwards any argument into its stored value.

This utility struct uses a perfect-forwarding constructor to initialize its data member from any compatible type, making it useful for type erasure or generic factory patterns where the exact construction site is separated from the call site.

Template parameters
T The type of the wrapped value.

Note

This is a note about the C class.

Warning

This is a warning about the C class.

function C<T>(U &&)

template <typename U>
C(U&& u)

Defined at library.hpp:306

variable value

T value

Defined at library.hpp:309

Defined at library.hpp:303