// ---------------------------------------------------------------------- // // atvec.cc - Do vectors support at() member function? // // History: // 27-Apr-2000 WEB Initial draft, adapted from allocvec.cc // 25-Apr-2001 WEB s//"ISOcxx\/ISOcxxSyntax.hh"/ // // ---------------------------------------------------------------------- #include "ISOcxx/ISOcxxSyntax.hh" #include int main() { std::STL_VECTOR( int ) const v( 10, 0 ); return #ifndef DEFECT_NO_VECTOR_AT v.at(0) // compliant #else v[0] // not compliant #endif ; } // main()