-// Copyright (C) 2011-2021 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011-2022 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
io_service_(), timer_called_(false), timer_cancel_success_(false)
{}
~IntervalTimerTest() {}
- class TimerCallBack : public std::unary_function<void, void> {
+ class TimerCallBack {
public:
TimerCallBack(IntervalTimerTest* test_obj) : test_obj_(test_obj) {}
void operator()() const {
private:
IntervalTimerTest* test_obj_;
};
- class TimerCallBackCounter : public std::unary_function<void, void> {
+ class TimerCallBackCounter {
public:
TimerCallBackCounter(IntervalTimerTest* test_obj) :
test_obj_(test_obj)
private:
IntervalTimerTest* test_obj_;
};
- class TimerCallBackCancelDeleter : public std::unary_function<void, void> {
+ class TimerCallBackCancelDeleter {
public:
TimerCallBackCancelDeleter(IntervalTimerTest* test_obj,
IntervalTimer* timer,
unsigned int& counter_;
IntervalTimer& itimer_;
};
- class TimerCallBackOverwriter : public std::unary_function<void, void> {
+ class TimerCallBackOverwriter {
public:
TimerCallBackOverwriter(IntervalTimerTest* test_obj,
IntervalTimer& timer)
IntervalTimer& timer_;
int count_;
};
- class TimerCallBackAccumulator: public std::unary_function<void, void> {
+ class TimerCallBackAccumulator {
public:
TimerCallBackAccumulator(IntervalTimerTest* test_obj, int &counter) :
test_obj_(test_obj), counter_(counter) {
-// Copyright (C) 2021 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2021-2022 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
}
/// @brief Callback for the TimeSignal's internal timer.
- class SendSignalCallback: public std::unary_function<void, void> {
+ class SendSignalCallback {
public:
/// @brief Constructor
-// Copyright (C) 2009-2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2009-2022 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
}
namespace {
-struct MatchRR : public unary_function<RRsetPtr, bool> {
+struct MatchRR {
MatchRR(const Name& name, const RRType& rrtype, const RRClass& rrclass) :
name_(name), rrtype_(rrtype), rrclass_(rrclass) {}
bool operator()(const RRsetPtr& rrset) const {
-// Copyright (C) 2010-2020 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2010-2022 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
namespace {
// A callback functor for masterLoad() commonly used for the following tests.
-class TestCallback : public unary_function<ConstRRsetPtr, void> {
+class TestCallback {
public:
TestCallback(vector<ConstRRsetPtr>& rrsets) : rrsets_(rrsets) {}
void operator()(ConstRRsetPtr rrset) {
// This is a helper callback to test the case the input stream becomes bad
// in the middle of processing.
-class StreamInvalidator : public unary_function<ConstRRsetPtr, void> {
+class StreamInvalidator {
public:
StreamInvalidator(stringstream& ss) : ss_(ss) {}
void operator()(ConstRRsetPtr) {