Poco

template < typename PlaceholderT >

union Placeholder

File Information

Library: Foundation
Package: Core
Header: Poco/Any.h

Description

ValueHolder union (used by Poco::Any and Poco::Dynamic::Var for small object optimization, when enabled).

If Holder<Type> fits into POCO_SMALL_OBJECT_SIZE bytes of storage, it will be placement-new-allocated into the local buffer (i.e. there will be no heap-allocation). The local buffer size is one byte larger - [POCO_SMALL_OBJECT_SIZE + 1], additional byte value indicating where the object was allocated (0 => heap, 1 => local).

Member Summary

Member Functions: content

Constructors

Placeholder inline

Placeholder();

Member Functions

content inline

PlaceholderT * content() const;

Securely control IoT edge devices from anywhere   Connect a Device