cnova/Clang_Tidy_modernize.cpp [13:37]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
int add(int x, int y) { return x + y; }

void bind_to_lambda(int num) {
    int x = 2;
    auto clj = std::bind(add, x, num);
}

void loop_convert(const std::vector<int>& vec) {
    for(auto iter = vec.begin(); iter != vec.end(); ++iter) {
        std::cout << *iter;
    }
}

class myClass {
public:
    myClass(const std::string &Copied,
            const std::string &ReadOnly)
            : Copied(Copied), ReadOnly(ReadOnly) {}

private:
    std::string Copied;
    const std::string &ReadOnly;
};

typedef void (myClass::* MyPtrType)() const;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



cpp/Clang_Tidy_modernize.cpp [13:37]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
int add(int x, int y) { return x + y; }

void bind_to_lambda(int num) {
    int x = 2;
    auto clj = std::bind(add, x, num);
}

void loop_convert(const std::vector<int>& vec) {
    for(auto iter = vec.begin(); iter != vec.end(); ++iter) {
        std::cout << *iter;
    }
}

class myClass {
public:
    myClass(const std::string &Copied,
            const std::string &ReadOnly)
            : Copied(Copied), ReadOnly(ReadOnly) {}

private:
    std::string Copied;
    const std::string &ReadOnly;
};

typedef void (myClass::* MyPtrType)() const;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



