Function RangeInitialize

Summary

#include <include/EASTL/string.h>

(1) void RangeInitialize(const value_type *pBegin, const value_type *pEnd)

(2) void RangeInitialize(const value_type *pBegin)

Function overload

Synopsis

#include <include/EASTL/string.h>

void RangeInitialize(const value_type *pBegin, const value_type *pEnd)

Description

No description yet.

Source

Lines 3239-3253 in include/EASTL/string.h. Line 762 in include/EASTL/string.h.

template <typename T, typename Allocator>
void basic_string<T, Allocator>::RangeInitialize(const value_type* pBegin, const value_type* pEnd)
{
    #if EASTL_STRING_OPT_ARGUMENT_ERRORS
        if(EASTL_UNLIKELY(!pBegin && (pEnd < pBegin))) // 21.4.2 p7
            ThrowInvalidArgumentException();
    #endif
    const size_type n = (size_type)(pEnd - pBegin);
    AllocateSelf(n);
    CharStringUninitializedCopy(pBegin, pEnd, internalLayout().BeginPtr());
    *internalLayout().EndPtr() = 0;
}

Synopsis

#include <include/EASTL/string.h>

void RangeInitialize(const value_type *pBegin)

Description

No description yet.

Source

Lines 3256-3265 in include/EASTL/string.h. Line 763 in include/EASTL/string.h.

template <typename T, typename Allocator>
inline void basic_string<T, Allocator>::RangeInitialize(const value_type* pBegin)
{
    #if EASTL_STRING_OPT_ARGUMENT_ERRORS
        if(EASTL_UNLIKELY(!pBegin))
            ThrowInvalidArgumentException();
    #endif
    RangeInitialize(pBegin, pBegin + CharStrlen(pBegin));
}





Add Discussion as Guest

Log in