Skip to content

Commit

Permalink
Moving definition
Browse files Browse the repository at this point in the history
  • Loading branch information
loumalouomega committed Oct 31, 2023
1 parent 914c714 commit 50863c8
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions kratos/spatial_containers/tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,6 @@ namespace Kratos
///@name Functions
///@{

// Helper template to extract ObjectType or default to void
template <typename T, typename = void>
struct GetObjectType {
using type = void;
};

template <typename T>
struct GetObjectType<T, std::void_t<typename T::ObjectType>> {
using type = typename T::ObjectType;
};

///@}
///@name Kratos Classes
///@{
Expand Down Expand Up @@ -203,6 +192,17 @@ class Tree
///@name Type Definitions
///@{

// Helper template to extract ObjectType or default to void
template <typename T, typename = void>
struct GetObjectType {
using type = void;
};

template <typename T>
struct GetObjectType<T, std::void_t<typename T::ObjectType>> {
using type = typename T::ObjectType;
};

/**
* @class Partitions
* @brief Class to represent partitions for the tree.
Expand Down

0 comments on commit 50863c8

Please sign in to comment.