| 249 | } |
| 250 | |
| 251 | inline Aws::String ToAwsString(const std::string& s) { |
| 252 | // Direct construction of Aws::String from std::string doesn't work because |
| 253 | // it uses a specific Allocator class. |
| 254 | return Aws::String(s.begin(), s.end()); |
| 255 | } |
| 256 | |
| 257 | inline std::string_view FromAwsString(const Aws::String& s) { |
| 258 | return {s.data(), s.length()}; |