Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Test size_t
// Example program #include <iostream> #include <string> #include <vector> #include <boost/format.hpp> using namespace std; int main() { std::vector<std::string> _list; auto _size = _list.size(); /* for (int i = 0; i < (_size - 1); i++) { std::cout << "Hi~" << endl; } */ int i = 0; cout << boost::format( "%lu, %d" ) % _size % (_size - 1) << endl; cout << size_t(-1) << endl; cout << std::numeric_limits<size_t>::max() << endl; cout << (unsigned long)-1 << endl; cout << (unsigned long)0 << endl; } // https://stackoverflow.com/questions/19234248/what-is-this-code-doing-size-t-1
run
|
edit
|
history
|
help
0
Dash-D compiler flag example
wellformed number
GetTypeName
std::function copies
C++ Operator Overloading
hello,world !ssn2019
"nearest enclosing namespace"
Clang-IsBaseOf
wasm test for node
ternary test c++14