diff --git a/test/common_helper/test.hpp b/test/common_helper/test.hpp index 271b3f0..ffd8746 100644 --- a/test/common_helper/test.hpp +++ b/test/common_helper/test.hpp @@ -263,4 +263,17 @@ inline std::ostream& operator<<(std::ostream& os, ReturnCode rc) { return creator(std::make_index_sequence()); \ }).operator()(il) +#define OPERATOR_EQ_IL(obj, il, len) \ +([&](std::initializer_list args) { \ + auto creator = [&] (std::index_sequence<_idx...>) { \ + return obj = { (*std::next(std::begin(args), _idx))... }; \ + }; \ + return creator(std::make_index_sequence()); \ +}).operator()(il) + +template +constexpr typename std::remove_cvref_t&& force_move(T&& obj) { + return static_cast&&>(obj); +} + #endif //CONST_CONTAINER_TEST_HPP_