#pragma once
#include <string>
class Code
{
};
class Example
{
public:
Example() = default;
~Example() = default;
Example(int i, int j);
Example(int i) : Example(i, 100) {}
Example(const Example &other);
Example(Example &&other) noexcept;
Example& operator=(const Example &other);
Example& operator=(Example &&other) noexcept;
private:
int mInterval = 100;
std::string mSignature = "ExampleObj";
};
class Example final : public IoStream
{
public:
void Print(...) override;
};
enum class State: uint8_t
{
INIT = 0,
CHECKIN = 1,
SEALED = 2,
};
static_assert(sizeof(State) == 1, "State is Uint8");
enum class FileType
{
REPLICATION = 1,
EC = 2,
};
using Closure = ::google::protobuf::Closure;
constexpr uint32_t MAGIC = 0xf8f8f8f8;
uint64_t var = 100;
auto var2 = var;
std::vector<int> intVec = {1, 2, 3};
Example* pObj = nullptr;
using TypeVec = std::map<int, std::vector<std::string>>;
for (const auto & e : vec)
{
}
thread_local std::vector<int> tlsVec;
std::mutex;
std::lock_guard<std::mutex>;
std::conditional_variable;
std::atomic<int>;
std::tuple<int, long, string>;
std::array<int>;
std::unordered_set, std::unordered_map, ...;
std::unique_ptr<Obj>;
std::chrono;
std::thread;