Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.19 KB

any.md

File metadata and controls

40 lines (28 loc) · 1.19 KB
description title ms.date f1_keywords helpviewer_keywords no-loc
Learn more about the classes and functions declared in the <any> header in the C++ Standard Library.
<any>
09/20/2021
<any>
<any>
any
std
class

<any>

Defines the class std::any and several supporting functions and classes.

Requirements

Header: <any>

Namespace: std

Standard: C++17 (Use at least /std:c++17 to compile.)

Members

Functions

Name Description
any_cast Makes an object into an any.
make_any Takes values and creates an any object.
swap Exchanges the elements of two any objects.

Classes

Name Description
any An any instance either stores a type that satisfies the constructor requirements or has no value.
bad_any_cast Objects thrown by a failed any_cast.

See also

Header files reference