Shortcuts

Template Function ripple::padding

Function Documentation

template<typename T, any_block_enable_t<T> = 0>
auto ripple::padding(SharedWrapper<T> &wrapper) noexcept -> size_t

Returns the padding for the wrapper.

If this wrapper has its padding set, then it returs that, otherwise it will check if the type is block enabled, and if so return that padding of the wrapped type.

If this wrapper has its padding set, then it returs that, otherwise it will check if the type is block enabled, and if so return that padding of the wrapped type.

Note

This overload is only enabled if the template type is block enabled, and therefore it has a padding method.

Return

The amount of padding for the wrapper.

Parameters
  • wrapper: The wrapper to get the amount of padding for.

Note

This overload is only enabled if the template type is not block enabled, and therefore it does not have a padding method so the default case returns zero.

Return

The amount of padding for the wrapper.

Parameters
  • wrapper: The wrapper to get the amount of padding for.

Docs

Access comprehensive developer documentation for Ripple

View Docs

Tutorials

Get tutorials to help with understand all features

View Tutorials

Examples

Find examples to help get started

View Examples