• Docs >
  • Ripple API >
  • Template Struct ModificationTraits< ModificationSpecifier< T, Modification > >
Shortcuts

Template Struct ModificationTraits< ModificationSpecifier< T, Modification > >

Struct Documentation

template<typename T, Modifier Modification>
struct ripple::ModificationTraits<ModificationSpecifier<T, Modification>>

Modification traits for a type which is a modifier.

Template Parameters
  • T: The type wrapped by the modifier.

  • Modification: The type of modification for the modifier.

Public Types

using Value = std::remove_reference_t<T>

Defines the wrapped type for the modifier.

Public Static Attributes

constexpr bool is_modifier = true

Returns true that this is a modifier type.

constexpr bool is_concurrent = Modification == Modifier::concurrent || Modification == Modifier::concurrent_shared || Modification == Modifier::concurrent_expander || Modification == Modifier::concurrent_shared_expander

Returns true if the modification is concurrent.

constexpr bool is_exclusive = Modification == Modifier::exclusive || Modification == Modifier::exclusive_shared || Modification == Modifier::exclusive_expander || Modification == Modifier::exclusive_shared_expander

Returns true if the modification is exclusive.

constexpr bool uses_shared = Modification == Modifier::shared || Modification == Modifier::exclusive_shared || Modification == Modifier::concurrent_shared || Modification == Modifier::shared_expander || Modification == Modifier::exclusive_shared_expander || Modification == Modifier::concurrent_shared_expander

Returns true if the modification requires shared memory.

constexpr bool is_expander = Modification == Modifier::expander || Modification == Modifier::shared_expander || Modification == Modifier::concurrent_expander || Modification == Modifier::exclusive_expander || Modification == Modifier::exclusive_shared_expander || Modification == Modifier::concurrent_shared_expander

Returns true if this is an expander modifier.

constexpr bool exclusive_or_concurrent = is_exclusive || is_concurrent

Returns true if the modification is exclusive or concurrent.

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