is_final Class

 

The latest version of this topic can be found at is_final Class.

Tests whether the type is a class type marked final.

Syntax

template <class T>
struct is_final;

Parameters

T
The type to query.

Remarks

An instance of the type predicate holds true if the type T is a class type marked final, otherwise it holds false. If T is a class type, it must be a complete type.

Requirements

Header: <type_traits>

Namespace: std

See Also

<type_traits>
final Specifier