Download data/miniconda3/include/yaml-cpp/stlemitter.h from assassinlike/everything132: direct link, hf CLI and curl.
- Browser
- Download file 1.32 kB
-
https://huggingface.co/datasets/assassinlike/everything132/resolve/main/data/miniconda3/include/yaml-cpp/stlemitter.h
- Command line
-
hf download hf://datasets/assassinlike/everything132/data/miniconda3/include/yaml-cpp/stlemitter.h
-
curl -L -o stlemitter.h https://huggingface.co/datasets/assassinlike/everything132/resolve/main/data/miniconda3/include/yaml-cpp/stlemitter.h
1.32 kB
| namespace YAML { | |
| template <typename Seq> | |
| inline Emitter& EmitSeq(Emitter& emitter, const Seq& seq) { | |
| emitter << BeginSeq; | |
| for (const auto& v : seq) | |
| emitter << v; | |
| emitter << EndSeq; | |
| return emitter; | |
| } | |
| template <typename T> | |
| inline Emitter& operator<<(Emitter& emitter, const std::vector<T>& v) { | |
| return EmitSeq(emitter, v); | |
| } | |
| template <typename T> | |
| inline Emitter& operator<<(Emitter& emitter, const std::list<T>& v) { | |
| return EmitSeq(emitter, v); | |
| } | |
| template <typename T> | |
| inline Emitter& operator<<(Emitter& emitter, const std::set<T>& v) { | |
| return EmitSeq(emitter, v); | |
| } | |
| template <typename K, typename V> | |
| inline Emitter& operator<<(Emitter& emitter, const std::map<K, V>& m) { | |
| emitter << BeginMap; | |
| for (const auto& v : m) | |
| emitter << Key << v.first << Value << v.second; | |
| emitter << EndMap; | |
| return emitter; | |
| } | |
| } | |