12#ifndef ROOT_RAlignmentUtils
13#define ROOT_RAlignmentUtils
26 return align > 0 && (align & (align - 1)) == 0;
35 return (
value + align - 1) & ~(align - 1);
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
constexpr T AlignUp(T value, T align) noexcept
Round value up to the next multiple of align.
constexpr bool IsValidAlignment(std::size_t align) noexcept
Return true if align is a valid C++ alignment value: strictly positive and a power of two.