LibreOffice
LibreOffice 24.2 SDK API Reference
Public Attributes | List of all members
Optional< T > Struct Reference

An optional value of a given type. More...

import"Optional.idl";

Public Attributes

boolean IsPresent
 Marks this structure instance as having an actual value. More...
 
Value
 The actual value of this structure instance. More...
 

Detailed Description

An optional value of a given type.

This structure is used as the type of interface attributes corresponding to instances of com::sun::star::beans::Property that have the com::sun::star::beans::PropertyAttribute::MAYBEVOID. It might also be useful in other situations, for example as the return type of an interface method.

Member Data Documentation

◆ IsPresent

boolean IsPresent

Marks this structure instance as having an actual value.

◆ Value

T Value

The actual value of this structure instance.

If no actual value is present, a producer of such a structure instance should leave this member defaulted, and a consumer of such a structure instance should ignore the specific value stored in this member.


The documentation for this struct was generated from the following file: