---
name: "mongoc_optional_is_set"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_optional_is_set"
---

# mongoc\_optional\_is\_set(3)

## SYNOPSIS

```
bool
mongoc_optional_is_set (const mongoc_optional_t *opt);
```

Returns whether a value for a *mongoc\_optional\_t* was set.

## PARAMETERS

- •

  **opt**: A *mongoc\_optional\_t*.

## RETURNS

Returns **true** if a value was set, or **false** otherwise.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
