Programming I version 1.5.3
Programming I C Library
Loading...
Searching...
No Matches
Data Fields
StringOption Struct Reference

A String option represents either a String or nothing. More...

#include <basedefs.h>

Data Fields

bool none
 
String some
 

Detailed Description

A String option represents either a String or nothing.

Option types are typically used with functions that may return a value of the given type or nothing (i.e. the return value is optional). The none member is true if the value is not present. Otherwise the value can be accessed with the some member.

See also
make_string_none
make_string_some

Field Documentation

◆ none

bool StringOption::none

◆ some

String StringOption::some

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