@@ -3873,22 +3873,22 @@ unittest
38733873 * Determines if the $(D Source) type satisfies all interface requirements of
38743874 * $(D Targets).
38753875 */
3876- private template isConceptWith (Source, Targets... )
3876+ private template implementsInterface (Source, Targets... )
38773877if (Targets.length >= 1 && allSatisfy! (isMutable, Targets))
38783878{
38793879 import std.typetuple : staticMap;
38803880
38813881 // strict upcast
3882- auto isConceptWith ()() @safe pure nothrow
3882+ auto implementsInterface ()() @safe pure nothrow
38833883 if (Targets.length == 1 && is (Source : Targets[0 ]))
38843884 {
38853885 return true ;
38863886 }
38873887 // structural upcast
3888- template isConceptWith ()
3888+ template implementsInterface ()
38893889 if (! allSatisfy! (Bind! (isImplicitlyConvertible, Source), Targets))
38903890 {
3891- auto isConceptWith ()
3891+ auto implementsInterface ()
38923892 {
38933893 return hasRequireMethods! ();
38943894 }
@@ -3914,12 +3914,12 @@ if (Targets.length >= 1 && allSatisfy!(isMutable, Targets))
39143914 }
39153915}
39163916// / ditto
3917- private template isConceptWith (Source, Targets... )
3917+ private template implementsInterface (Source, Targets... )
39183918if (Targets.length >= 1 && ! allSatisfy! (isMutable, Targets))
39193919{
39203920 import std.typetuple : staticMap;
39213921
3922- alias isConceptWith = .isConceptWith ! (Source, staticMap! (Unqual, Targets));
3922+ alias implementsInterface = .implementsInterface ! (Source, staticMap! (Unqual, Targets));
39233923}
39243924
39253925unittest {
@@ -3950,22 +3950,22 @@ unittest {
39503950 void foobar () {}
39513951 }
39523952 // Implements interface
3953- static assert (isConceptWith ! (A, Foo ));
3954- static assert (isConceptWith ! (A, const (Foo )));
3955- static assert (isConceptWith ! (A, immutable (Foo )));
3953+ static assert (implementsInterface ! (A, Foo ));
3954+ static assert (implementsInterface ! (A, const (Foo )));
3955+ static assert (implementsInterface ! (A, immutable (Foo )));
39563956 // Doesn't implement interface
3957- static assert (! isConceptWith ! (B, Foo ));
3958- static assert (isConceptWith ! (B, Bar ));
3957+ static assert (! implementsInterface ! (B, Foo ));
3958+ static assert (implementsInterface ! (B, Bar ));
39593959 // Implements both interfaces
3960- static assert (isConceptWith ! (C, Foo ));
3961- static assert (isConceptWith ! (C, Bar ));
3962- static assert (isConceptWith ! (C, Foo , Bar ));
3963- static assert (isConceptWith ! (C, Foo , const (Bar )));
3964- static assert (! isConceptWith ! (A, Foo , Bar ));
3965- static assert (! isConceptWith ! (A, Foo , immutable (Bar )));
3960+ static assert (implementsInterface ! (C, Foo ));
3961+ static assert (implementsInterface ! (C, Bar ));
3962+ static assert (implementsInterface ! (C, Foo , Bar ));
3963+ static assert (implementsInterface ! (C, Foo , const (Bar )));
3964+ static assert (! implementsInterface ! (A, Foo , Bar ));
3965+ static assert (! implementsInterface ! (A, Foo , immutable (Bar )));
39663966 // Implements inherited
3967- static assert (isConceptWith ! (D, FooBar));
3968- static assert (! isConceptWith ! (B, FooBar));
3967+ static assert (implementsInterface ! (D, FooBar));
3968+ static assert (! implementsInterface ! (B, FooBar));
39693969}
39703970
39713971private template isInterface (ConceptType) {
@@ -3998,7 +3998,7 @@ if (Targets.length >= 1 && allSatisfy!(isMutable, Targets)
39983998 {
39993999 auto wrap (inout Source src)
40004000 {
4001- static assert (isConceptWith ! (Source, Targets),
4001+ static assert (implementsInterface ! (Source, Targets),
40024002 " Source " ~ Source.stringof~
40034003 " does not have structural conformance to " ~
40044004 Targets.stringof);
0 commit comments