File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -699,6 +699,9 @@ class alignas(1 << TypeAlignInBits) TypeBase
699
699
// / Copyable.
700
700
bool isNoncopyable ();
701
701
702
+ // / Returns true if this contextual type satisfies a conformance to Copyable.
703
+ bool isCopyable ();
704
+
702
705
// / Returns true if this contextual type satisfies a conformance to Escapable.
703
706
bool isEscapable ();
704
707
Original file line number Diff line number Diff line change @@ -946,6 +946,11 @@ bool TypeBase::isNoncopyable() {
946
946
return !Bits.TypeBase .IsCopyable ;
947
947
}
948
948
949
+ // / \returns true iff this type conforms to Copyable.
950
+ bool TypeBase::isCopyable () {
951
+ return !isNoncopyable ();
952
+ }
953
+
949
954
// / \returns true iff this type conforms to Escaping.
950
955
bool TypeBase::isEscapable () {
951
956
if (!Bits.TypeBase .ComputedInvertibleConformances )
You can’t perform that action at this time.
0 commit comments