Set this DiscriminatedPtr to point to an object of type T. Fails at compile time if T is not a valid type (listed in Types)

Synopsis

Declared in <folly/DiscriminatedPtr.h>

template<typename T>
void
set(T* ptr);

Parameters

Name

Description

ptr

Pointer to the object this DiscriminatedPtr will reference.

Created with MrDocs