![]() |
![]() ![]() ![]() ![]() |
![]() |
The MPL Reference Manual: c_strBoost , ,
|
||||||||||||||||||||||||
| Front Page / Metafunctions / String Operations / c_str |
template<
typename Sequence
>
struct c_str
{
typedef unspecified type;
static char const value[];
};
c_str преобразует Forward Sequence Integral Constants Sequence в строку с нулевым значением, содержащую эквивалентную последовательность.
#include <boost/mpl/string.hpp>
| Parameter | Requirement | Description |
|---|---|---|
| Следствие | Последняя последовательность Интегральный постоянs | Последовательность должна быть преобразована в нуль-терминированную байтовую строку. |
For any Forward Sequence of Integral Constants s,
c_str<s>::value;
| Return type: | A null-terminated byte string. |
|---|---|
| Precondition: | size<s>::value <= BOOST_MPL_STRING_MAX_LENGTH. |
| Semantics: | Equivalent to
char const value[] = {
at<s, 0>::type::value
, ...
, at<s, size<s>::value-1>::type::value
, '\0'
};
|
| Sequence archetype | Complexity |
|---|---|
| Иностранное последовательность | Линейный. |
Статья The MPL Reference Manual: c_str раздела может быть полезна для разработчиков на c++ и boost.
:: Главная :: ::
реклама |