MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / setLinkIndex

Method setLinkIndex

Libraries/Reflection/Reflection.h:173–179  ·  view source on GitHub ↗

@brief Change Link index for this type @param newLinkIndex New Link Index @return `true` if the link index has been changed successfully

Source from the content-addressed store, hash-verified

171 /// @param newLinkIndex New Link Index
172 /// @return `true` if the link index has been changed successfully
173 [[nodiscard]] constexpr bool setLinkIndex(ssize_t newLinkIndex)
174 {
175 if (newLinkIndex > static_cast<decltype(linkIndex)>(~0ull))
176 return false;
177 linkIndex = static_cast<decltype(linkIndex)>(newLinkIndex);
178 return true;
179 }
180
181 /// @brief Check if type is primitive
182 [[nodiscard]] constexpr bool isPrimitiveType() const { return isPrimitiveCategory(type); }

Callers 1

compileAllTypesForMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected