File: owner.cc

package info (click to toggle)
cruft-ng 0.9.78
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,904 kB
  • sloc: cpp: 1,748; sh: 816; python: 262; makefile: 97; ansic: 82; perl: 75
file content (22 lines) | stat: -rw-r--r-- 444 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright © 2022 Alexandre Detiste <alexandre@detiste.be>
// SPDX-License-Identifier: GPL-2.0-or-later

#include "owner.h"

using namespace std;

owner::owner( std::string package_, std::string path_ )
{
        package = std::move(package_);
        path = std::move(path_);
}

bool operator==(owner const& l, owner const &r)
{
    return l.path == r.path;
}

bool operator<(owner const& l, owner const &r)
{
    return l.path < r.path;
}