This PR adds the CLinkAddress concept to the cpp/Platform.Interfaces/ directory. The CLinkAddress concept validates that an argument is both integral and unsigned. It is implemented as a template that can be used with any type.
Summary of Changes
Created a new header file cpp/Platform.Interfaces/CLinkAddress.h for the CLinkAddress concept.
Included the <type_traits> library in the CLinkAddress.h file.
Defined the CLinkAddress template with a single type parameter.
Added a static constexpr boolean variable value inside the CLinkAddress template, initialized with the result of the logical AND operation between std::is_integral and std::is_unsigned applied to the type parameter.
Fixes #113.
🎉 Latest improvements to Sweep:
Getting Sweep to run linters before committing! Check out Sweep Sandbox Configs to set it up.
Added support for self-hosting! Check out Self-hosting Sweep to get started.
[Self Hosting] Multiple options to compute vector embeddings, configure your .env file using VECTOR_EMBEDDING_SOURCE
💡 To get Sweep to edit this pull request, you can:
Leave a comment below to get Sweep to edit the entire PR
Leave a comment in the code will only modify the file
Edit the original issue to get Sweep to recreate the PR from scratch
Description
This PR adds the
CLinkAddress
concept to thecpp/Platform.Interfaces/
directory. TheCLinkAddress
concept validates that an argument is both integral and unsigned. It is implemented as a template that can be used with any type.Summary of Changes
cpp/Platform.Interfaces/CLinkAddress.h
for theCLinkAddress
concept.<type_traits>
library in theCLinkAddress.h
file.CLinkAddress
template with a single type parameter.value
inside theCLinkAddress
template, initialized with the result of the logical AND operation betweenstd::is_integral
andstd::is_unsigned
applied to the type parameter.Fixes #113.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: