Debian Codegraph @

cmake/cxx_tests/have_vector_at.cpp

raw
1 // DESCRIPTION
2 //
3 // Test to check whether the implementation of the C++ library
4 // provides the method std::vector::at(std::size_t).
5 // In sync with AC_CXX_HAVE_VECTOR_AT (2008-04-12).
6 //
7 // COPYLEFT
8 //
9 // Copyright (c) 2009 Theo Papadopoulo <[email protected]>
10 // Copyright (c) 2008 Jan Langer <[email protected]>
11 //
12 // Copying and distribution of this file, with or without modification, are
13 // permitted in any medium without royalty provided the copyright notice
14 // and this notice are preserved.
15
16 #include <vector>
17 using namespace std;
18
19 int main() {
20 vector v(1);
21 message.at(0);
22 return 0;
23 }