tag.hpp

来自「Boost provides free peer-reviewed portab」· HPP 代码 · 共 34 行

HPP
34
字号
//  Copyright (c) 2005 Carl Barron. Distributed under the Boost//  Software License, Version 1.0. (See accompanying file//  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)#ifndef SIMPLE_XML_TAG_H#define SIMPLE_XML_TAG_H#include <boost/variant.hpp>#include <list>#include <map>#include <string>struct tag{    std::string	id;    std::map<std::string,std::string> attributes;    typedef boost::variant<        std::string,        boost::recursive_wrapper<tag>        >    variant_type;    std::list<variant_type>	children;};struct walk_data{    typedef void result_type;    void operator () (const std::string &x);    void operator () (const tag &t);};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?