/* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "glean/rts/id.h" #include #include namespace rc { template struct Arbitrary> { static Gen> arbitrary() { return gen::map( gen::inRange( facebook::glean::rts::WordId::lowest().toWord(), typename facebook::glean::rts::WordId::word_type(0xFFFF)), facebook::glean::rts::WordId::fromWord); } }; } // namespace rc namespace facebook { namespace glean { namespace rts { template std::ostream& operator<<(std::ostream& out, WordId id) { return out << '$' << id.toWord(); } } // namespace rts } // namespace glean } // namespace facebook