Files
cppdraft_translate/cppdraft/func/bind/isbind.md
2025-10-25 03:02:53 +03:00

1.5 KiB

[func.bind.isbind]

22 General utilities library [utilities]

22.10 Function objects [function.objects]

22.10.15 Function object binders [func.bind]

22.10.15.2 Class template is_bind_expression [func.bind.isbind]

🔗

namespace std {template struct is_bind_expression; // see below}

1

#

The class template is_bind_expression can be used to detect function objects generated by bind.

The function template bind uses is_bind_expression to detect subexpressions.

2

#

Specializations of the is_bind_expression template shall meet the Cpp17UnaryTypeTrait requirements ([meta.rqmts]).

The implementation provides a definition that has a base characteristic oftrue_type if T is a type returned from bind, otherwise it has a base characteristic of false_type.

A program may specialize this template for a program-defined type T to have a base characteristic of true_type to indicate thatT should be treated as a subexpression in a bind call.