@brief Change Link index for this type @param newLinkIndex New Link Index @return `true` if the link index has been changed successfully
| 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); } |