# std::experimental::any::type

> C++ Atlas: `cppatlas.com/w/cpp/experimental/any/type` | Source: https://en.cppreference.com/w/cpp/experimental/any/type | Domain: Technical specifications

Queries the contained type.

## Official Specification Summary (cppreference)

```cpp
const type_info& type() const noexcept; // (library fundamentals TS)
```

Queries the contained type.

### Parameters

(none)

### Return value

The `typeid` of the contained value if instance is non-empty, otherwise `typeid(void)`.

---
Attribution: content from https://en.cppreference.com/w/cpp/experimental/any/type (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.