TRange::Split

Split the range into two ranges at the specified element.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/Range.h

Include

#include "Math/Range.h"

Syntax

TArray< TRange > Split
(
    ElementValueOrConstRef Element
) const

Remarks

Split the range into two ranges at the specified element.

If a range [A, C) does not contain the element X, the original range is returned. Otherwise the range is split into two ranges [A, X) and [X, C), each of which may be empty.

Parameters

Parameter

Description

Element

The element at which to split the range.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss