A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://clang.llvm.org/doxygen/classclang_1_1TypeConstraint.html below:

clang: clang::TypeConstraint Class Reference

Models the abbreviated syntax to constrain a template type parameter: template <convertible_to<string> T> void print(T object); ~~~~~~~~~~~~~~~~~~~~~~ Semantically, this adds an "immediately-declared constraint" with extra arg: requires convertible_to<T, string> More...

#include "clang/AST/ASTConcept.h"

Models the abbreviated syntax to constrain a template type parameter: template <convertible_to<string> T> void print(T object); ~~~~~~~~~~~~~~~~~~~~~~ Semantically, this adds an "immediately-declared constraint" with extra arg: requires convertible_to<T, string>

In the C++ grammar, a type-constraint is also used for auto types: convertible_to<string> auto X = ...; We do not model these as TypeConstraints, but AutoType(Loc) directly.

Definition at line 227 of file ASTConcept.h.

◆ TypeConstraint() ◆ getConceptNameInfo() ◆ getConceptNameLoc() ◆ getConceptReference() ◆ getFoundDecl() NamedDecl * clang::TypeConstraint::getFoundDecl ( ) const inline ◆ getImmediatelyDeclaredConstraint() Expr * clang::TypeConstraint::getImmediatelyDeclaredConstraint ( ) const inline ◆ getNamedConcept() ConceptDecl * clang::TypeConstraint::getNamedConcept ( ) const inline ◆ getNestedNameSpecifierLoc() ◆ getTemplateArgsAsWritten() ◆ getTemplateKWLoc() ◆ hasExplicitTemplateArgs() bool clang::TypeConstraint::hasExplicitTemplateArgs ( ) const inline ◆ print() void clang::TypeConstraint::print ( llvm::raw_ostream &  OS, const PrintingPolicyPolicy  ) const inline

The documentation for this class was generated from the following file:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4