/
githubmirror
/
nbs
Обзор
Документация
Войти
/
githubmirror
/
nbs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
library/cpp/json/easy_parse/json_easy_parser_impl.h
40 строк
781 B
qkrorlqr
Initial NBS OpenSource export
28 апр 2023, 21:54
28 апр 2023, 21:54
783a858
Код
Авторство
О чём код?
#pragma once #include <util/generic/string.h> namespace NJson { namespace NImpl { enum EType { ARRAY, MAP, MAP_KEY }; } template <class TStringType> struct TPathElemImpl { NImpl::EType Type; TStringType Key; int ArrayCounter; TPathElemImpl(NImpl::EType type) : Type(type) , ArrayCounter() { } TPathElemImpl(const TStringType& key) : Type(NImpl::MAP_KEY) , Key(key) , ArrayCounter() { } TPathElemImpl(int arrayCounter) : Type(NImpl::ARRAY) , ArrayCounter(arrayCounter) { } }; typedef TPathElemImpl<TString> TPathElem; }