Boost C++ 库

“……世界上最受尊敬和专业设计的 C++ 库项目之一。” Herb SutterAndrei Alexandrescu, C++ 编码标准

PrevUpHomeNext

函数 to_upper_copy

boost::algorithm::to_upper_copy — 转换为大写。

概要

// In header: <boost/algorithm/string/case_conv.hpp>


template<typename OutputIteratorT, typename RangeT> 
  OutputIteratorT 
  to_upper_copy(OutputIteratorT Output, const RangeT & Input, 
                const std::locale & Loc = std::locale());
template<typename SequenceT> 
  SequenceT to_upper_copy(const SequenceT & Input, 
                          const std::locale & Loc = std::locale());

描述

输入序列的每个元素都被转换为大写。 结果是转换为大写的输入的副本。 它作为序列返回或复制到输出迭代器

[Note] 注意

此函数的第二个变体提供了强大的异常安全保证

参数

输出

结果将被复制到的输出迭代器

输入

一个输入范围

Loc

用于转换的区域设置

返回值

一个指向最后一个插入字符之后的输出迭代器或输入的副本


PrevUpHomeNext