Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
field::field (4 of 26 overloads)

Constructs a field holding NULL.

Synopsis
field(
    std::nullptr_t);
Description

Caution: field(NULL) will NOT match this overload. It will try to construct a string_view from a NULL C string, causing undefined behavior.

Exception safety

No-throw guarantee.


PrevUpHomeNext