LibreOffice: Optional< T > Struct Reference

LibreOffice LibreOffice 5.1 SDK API Reference

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

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...
T | 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

boolean IsPresent

Marks this structure instance as having an actual 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:

- com/sun/star/beans/Optional.idl