Coder Social home page Coder Social logo

dnkpp / simple-utility Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 6.21 MB

Home Page: https://dnkpp.github.io/Simple-Utility/

License: Boost Software License 1.0

C++ 99.23% CMake 0.77%
cpp20 functional header-only library utility monad concepts cpp modern-cpp type-list

simple-utility's People

Contributors

aunovis-koepke avatar dnkpp avatar hiimjulien avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

simple-utility's Issues

add utility for ordering category

template <class T>
concept odering_category = std::same_as<T, std::strong_ordering>
			|| std::same_as<T, std::weak_ordering>
			|| std::same_as<T, std::partial_ordering>;

template <class T, odering_category Alternative>
struct ordering_category_of_or
{
	using type = Alternative;
};

template <std::three_way_comparable T, odering_category Alternative>
struct ordering_category_of_or<T, Alternative>
{
	using type = std::compare_three_way_result_t<T>;
};

template <class T, class Alternative>
using ordering_category_of_or_t = typename ordering_category_of_or<T, Alternative>::type;

May be useful.

See https://en.cppreference.com/w/cpp/utility/compare/common_comparison_category

  template<class T, class Cat>
  concept __ComparesAs = std::same_as<std::common_comparison_category_t<T, Cat>, Cat>;

add ``concept::tuple_like_type``

A concept, which relaxes the requirement of providing a get free-function type, and thus not require the type to actually contain objects of its elements (e.g. entt::type_list).

improve versioning

version should be read from a header file, instead of defining it in the root CMakeLists.txt file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.