TRange::Split

Split the range into two ranges at the specified element.

Choose your operating system:

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.