Assertion: clang | /r/CapableOf | optimize on in this example
Facets:
Source sentences:
text: Consider the following example: template < typename T > T twice ( T t ) { return 2 * t ; } #pragma clang optimize off template < typename T > T thrice ( T t ) { return 3 * t ; } int container ( int a , int b ) { return twice ( a ) + thrice ( b ); } #pragma clang optimize on In this example, the definition of the template function twice is outside the pragma region, whereas the definition of thrice is inside the region.