Content deleted Content added
m a dog refers to an animal that barks -> a dog is an animal that barks |
valid return for main |
||
Line 61:
std::cout << has_typedef_foobar<int>::value << std::endl; // Prints false
std::cout << has_typedef_foobar<foo>::value << std::endl; // Prints true
return 0;
}
</syntaxhighlight>
Line 90 ⟶ 91:
std::cout << has_typedef_foobar<int>::value << std::endl;
std::cout << has_typedef_foobar<foo>::value << std::endl;
return 0;
}
</syntaxhighlight>
Line 109 ⟶ 111:
std::cout << std::is_detected<has_typedef_foobar_t, int>::value << std::endl;
std::cout << std::is_detected<has_typedef_foobar_t, foo>::value << std::endl;
return 0;
}
</syntaxhighlight>
|