TStringView::TStringView

Construct a view from a contiguous range of characters, such as [FString](API\Runtime\Core\Containers\FString) or TStringBuilder.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/StringView.h

Include

#include "Containers/StringView.h"

Syntax

template<typename CharRangeType, std::enable_if_t< TIsContiguousContainer< CharRangeType >::Value &&TIsCharType< TElementType_T< CharRangeType >>::Value &&FPlatformString::IsCharEncodingCompatibleWith< TElementType_T< CharRangeType >, CharType >()&&!std::is_array_v< std::remove_reference_t< CharRangeType >> &&!std::is_same_v< CharRangeType, ViewType > > *>
constexpr TStringView
(
    const CharRangeType & InRange
)

Remarks

Construct a view from a contiguous range of characters, such as FString or TStringBuilder.