#include class seq { public: seq(std::initializer_list list); int length() const; private: std::vector m_v; }; seq::seq(std::initializer_list list) : m_v(list) { } int seq::length() const { return m_v.size(); } int main(void) { seq a = {18, 20, 2, 0, 4, 7}; return (a.length() == 6) ? 0 : 1; }