C++

SFINAE

Në shqip përdoret i njëjti emër.

ShpjegimiSQ

SFINAE („Substitution Failure Is Not An Error“) do të thotë që nëse një template s'përshtatet për një tip, kompajleri thjesht e injoron dhe kërkon një tjetër. Ishte mënyra e vjetër e kufizimit të template-ve; sot përdoren concepts.

EnglishEN

SFINAE (“Substitution Failure Is Not An Error”) means that if a template doesn't fit a type, the compiler simply ignores it and looks for another. It was the old way of constraining templates; today you use concepts.

Si ta mendosh

Si një çelës që s'hyn në një bravë: s'e thyen derën, thjesht provon çelësin tjetër.

Lexoje në anglisht

Like a key that doesn't fit a lock: you don't break the door, you just try the next key.

Terma të lidhur