C ++ Templet operator design defect

xiaoxiao2021-03-06  66

I have always used assembly and c, I have wanted to look at STL recently, turned out of JJou.

"Genericity / STL Large". One of the first example:

#include #include #include #include using namespace std; int main () {int a [] = {27, 210, 12, 47, 109, 83, 40}; Vector > VEC (IA, IA 7); cout << count_if (vec.begin (), vec.end (), not1 (bind2nd (less_equal (), 40))))))) Return 0;}

I wrote one of them when I entered:

Vector > VEC (IA, IA 7); the result is naturally unable to pass. Helpless>> Destroy C / C language aesthetics, regret!

转载请注明原文地址:https://www.9cbs.com/read-110138.html

New Post(0)