Skip to content

Commit

Permalink
docs(core): remove no longer relevant info
Browse files Browse the repository at this point in the history
Before traits were reflectable types, but they aren't anymore
  • Loading branch information
RiscadoA committed Sep 5, 2023
1 parent de1fb49 commit f02b3a5
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions core/include/cubos/core/reflection/type.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ namespace cubos::core::reflection

/// @brief Adds the given trait to the type.
///
/// Aborts if the trait is already present in the type, or if its not move or copy
/// constructible. Fails to compile if the trait's type is not reflectable.
/// Aborts if the trait is already present in the type.
///
/// @tparam T %Trait type.
/// @param trait %Trait value.
Expand All @@ -52,9 +51,6 @@ namespace cubos::core::reflection
}

/// @brief Returns whether the type has the given trait.
///
/// Fails to compile if the trait's type is not reflectable.
///
/// @tparam T %Trait type.
/// @return Whether the type has the given trait.
template <typename T>
Expand All @@ -66,7 +62,6 @@ namespace cubos::core::reflection
/// @brief Returns the given trait of the type.
///
/// Aborts if the type does not have the given trait.
/// Fails to compile if the trait's type is not reflectable.
///
/// @tparam T %Trait type.
/// @return Reference to the trait.
Expand All @@ -85,7 +80,7 @@ namespace cubos::core::reflection

/// @brief Adds the given trait to the type.
/// @param id Identifies the type of the trait.
/// @param trait %Trait value to be moved into the type.
/// @param trait Allocated trait value.
/// @param deleter Used to delete the trait when the type is destroyed.
/// @return Reference to this type, for chaining.
Type& with(uintptr_t id, void* trait, void (*deleter)(void*));
Expand Down

0 comments on commit f02b3a5

Please sign in to comment.