num_list3.qbk
来自「Boost provides free peer-reviewed portab」· QBK 代码 · 共 34 行
QBK
34 行
[/============================================================================== Copyright (C) 2001-2008 Joel de Guzman Copyright (C) 2001-2008 Hartmut Kaiser 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)===============================================================================/][section Number List Redux - list syntax]So far, we've been using the syntax: double_ >> *(',' >> double_)to parse a comma-delimited list of numbers. Such lists are common in parsing andSpirit provides a simpler shortcut for them. The expression above can besimplified to: double_ % ','read as: a list of doubles separated by `','`.This sample, again a variation of our previous example, demonstrates just that:[import ../../example/qi/num_list3.cpp][tutorial_numlist3]The full cpp file for this example can be found here: [@../../example/qi/num_list3.cpp][endsect]
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?