clamped_value = FMath::Clamp( value, min, max )
If you know how to do it in blueprint, you can (almost) always double click on the blueprint node and the implementation will be brought up in your IDE. Sometimes you call that function directly or in cases like this, you just call the one function that blueprint implementation is calling.