Lines Matching refs:std

34         // redirect std::cout for the README file
35 auto* old_cout_buffer = std::cout.rdbuf();
36 std::ostringstream new_stream;
37 std::cout.rdbuf(new_stream.rdbuf());
48 // add a string that is stored as std::string
57 // add an array that is stored as std::vector (using an initializer list)
118 std::string s = j.dump(); // {\"happy\":true,\"pi\":3.141}
122 std::cout << j.dump(4) << std::endl;
128 std::cout << std::setw(2) << j << std::endl;
145 std::cout << *it << '\n';
151 std::cout << element << '\n';
155 const auto tmp = j[0].get<std::string>();
181 std::vector<int> c_vector {1, 2, 3, 4};
185 std::deque<float> c_deque {1.2f, 2.3f, 3.4f, 5.6f};
189 std::list<bool> c_list {true, true, false, true};
193 std::forward_list<int64_t> c_flist {12345678909876, 23456789098765, 34567890987654, 45678909876543};
197 std::array<unsigned long, 4> c_array {{1, 2, 3, 4}};
201 std::set<std::string> c_set {"one", "two", "three", "four", "one"};
205 std::unordered_set<std::string> c_uset {"one", "two", "three", "four", "one"};
209 std::multiset<std::string> c_mset {"one", "two", "one", "four"};
213 std::unordered_multiset<std::string> c_umset {"one", "two", "one", "four"};
219 std::map<std::string, int> c_map { {"one", 1}, {"two", 2}, {"three", 3} };
223 std::unordered_map<const char*, float> c_umap { {"one", 1.2f}, {"two", 2.3f}, {"three", 3.4f} };
227 std::multimap<std::string, bool> c_mmap { {"one", true}, {"two", true}, {"three", false}, {"three", true} };
231 std::unordered_multimap<std::string, bool> c_ummap { {"one", true}, {"two", true}, {"three", false}, {"three", true} };
238 std::string s1 = "Hello, world!";
240 auto s2 = js.get<std::string>();
256 std::string vs = js.get<std::string>();
299 // restore old std::cout
300 std::cout.rdbuf(old_cout_buffer);