1 #ifndef INDENTATION_H_62B23520_7C8E_11DE_8A39_0800200C9A66
2 #define INDENTATION_H_62B23520_7C8E_11DE_8A39_0800200C9A66
4 #if defined(_MSC_VER) || \
5 (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \
6 (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4
13 #include "yaml-cpp/ostream_wrapper.h"
17 Indentation(std::size_t n_) : n(n_) {}
21 inline ostream_wrapper& operator<<(ostream_wrapper& out,
22 const Indentation& indent) {
23 for (std::size_t i = 0; i < indent.n; i++)
29 IndentTo(std::size_t n_) : n(n_) {}
33 inline ostream_wrapper& operator<<(ostream_wrapper& out,
34 const IndentTo& indent) {
35 while (out.col() < indent.n)
41 #endif // INDENTATION_H_62B23520_7C8E_11DE_8A39_0800200C9A66