Template Struct union_competence_packs

Struct Documentation

template<typename TPack, typename ...TPacks>
struct union_competence_packs

Recursive case: Compute the unique union of the competences of more than one competence_pack.

This can be t8_mesh_handle::element_competence_pack or t8_mesh_handle::mesh_competence_pack. Specialization for the case when there are still at least two competence packs left to process. Uses union_two_competence_packs recursively for pairwise combination.

Template Parameters:
  • TPack – First competence pack to combine with the union of the rest of the competence packs in this recursion cycle.

  • TPacks – The competence pack for which we should compute the unique union of the competences. Each competence pack is expected to be of the same type.

Public Types

using type = typename union_two_competence_packs<TPack, typename union_competence_packs<TPacks...>::type>::type

This is the type of a new competence_pack (mesh or element) containing all competences of the competence packs with duplicates removed.