ocean.text.formatter.SmartUnion

Helper function for formatting a SmartUnion's active member to a string.

This function is not placed in the SmartUnion class itself so as to avoid spreading the dependency on ocean.text.convert.Formatter throughout the codebase.

Members

Functions

asActiveField
SmartUnionFormatter!(SU) asActiveField(SU smart_union, bool include_name)

Gets a wrapper struct with a toString method to format the provided smart union.

Meta

License

Boost Software License Version 1.0. See LICENSE_BOOST.txt for details. Alternatively, this file may be distributed under the terms of the Tango 3-Clause BSD License (see LICENSE_BSD.txt for details).