mirror of
https://github.com/BlackMATov/kari.hpp.git
synced 2025-12-15 05:25:25 +07:00
8
kari.hpp
8
kari.hpp
@@ -1,3 +1,9 @@
|
||||
/*******************************************************************************
|
||||
* This file is part of the "kari.hpp"
|
||||
* For conditions of distribution and use, see copyright notice in LICENSE.md
|
||||
* Copyright (C) 2018 Matvey Cherevko
|
||||
******************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <tuple>
|
||||
@@ -666,7 +672,7 @@ namespace kari
|
||||
KARI_HPP_DEFINE_UNDERSCORE_BINARY_OP(> , std::greater<>())
|
||||
KARI_HPP_DEFINE_UNDERSCORE_BINARY_OP(<=, std::less_equal<>())
|
||||
KARI_HPP_DEFINE_UNDERSCORE_BINARY_OP(>=, std::greater_equal<>())
|
||||
|
||||
|
||||
KARI_HPP_DEFINE_UNDERSCORE_BINARY_OP(==, std::equal_to<>())
|
||||
KARI_HPP_DEFINE_UNDERSCORE_BINARY_OP(!=, std::not_equal_to<>())
|
||||
|
||||
|
||||
10
tests.cpp
10
tests.cpp
@@ -1,3 +1,9 @@
|
||||
/*******************************************************************************
|
||||
* This file is part of the "kari.hpp"
|
||||
* For conditions of distribution and use, see copyright notice in LICENSE.md
|
||||
* Copyright (C) 2018 Matvey Cherevko
|
||||
******************************************************************************/
|
||||
|
||||
#define CATCH_CONFIG_MAIN
|
||||
#include "catch.hpp"
|
||||
|
||||
@@ -709,11 +715,11 @@ TEST_CASE("kari_details") {
|
||||
}
|
||||
SECTION("is_invocable") {
|
||||
using namespace kari::detail;
|
||||
|
||||
|
||||
const auto f1 = [](int i, int j){
|
||||
return i + j;
|
||||
};
|
||||
|
||||
|
||||
const auto f2 = [](int i, int j) noexcept {
|
||||
return i + j;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user