목록decltype (1)
일상 코딩
[C++/CPP] 19.08. 자료형 추론 type inferance, auto decltype
#include #include #include // std::min // Reference : http://thbecker.net/articles/auto_and_decltype/section_01.html using namespace std; class Examples { public: void ex1() { std::vector vect; for (std::vector::iterator itr = vect.begin(); itr != vect.end(); ++itr) cout m_x) m_x_type; // add references to L-values // with const typedef decltype((x)) x_with_parens_type; typedef decltype((cx)) cx..
C++/따배C++ 19강 모던 C++ 기능들
2022. 1. 2. 00:44