2
0
mirror of https://github.com/boostorg/redis.git synced 2026-02-17 14:02:13 +00:00
Files
redis/include/aedis/resp3/impl/response.ipp
Marcelo Zimbres 62e34767ca More refactoring.
2021-10-09 22:38:58 +02:00

30 lines
622 B
C++

/* Copyright (c) 2019 - 2021 Marcelo Zimbres Silva (mzimbres at gmail dot com)
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
#include <aedis/resp3/response.hpp>
#include <aedis/command.hpp>
namespace aedis {
namespace resp3 {
void response::clear()
{
data_.resize(0);
adapter_.clear();
}
std::ostream& operator<<(std::ostream& os, response const& r)
{
for (auto const& n : r.data_)
os << n << "\n";
return os;
}
} // resp3
} // aedis