Author: mrm Language: cpp
Description: Not specified Timestamp: 2011-08-01 14:56:11 +0000
This paste is: private
View raw paste Reply
/// ????????? ????????? ????? ?????????
static KeyElement distance(const Key& lhs, const Key& rhs) {
        KeyElement result = 0;
        std::transform(boost::begin(lhs), boost::end(lhs), boost::begin(rhs),
                       boost::make_function_output_iterator([&result](KeyElement v) { result += v * v; }),
                       std::minus());
        return result;
}


/* ??????, ? ?????? ??? ??????? ?? ????? ? ?????? ??????? ? ????? "?# IS THE
FUTURE", ?? ? ????????? ? ??? ????? ? ????? ??????? "std::cout << std::endl;" ?
??????? ??? ???????????? ?????????, ?????? ??? ? ?????? ?? ??????, ?????? ???
??? ????? ?????? ? ????????????? ????????????, ??? ? ?????????? ?????????? ??
???? ???????? ??????, ??? ???????? ?? ??????????? ????????, ??? ?????? ?????
???????????, ?????????? ?????????? ? ???????? ? ???? ???????? ?????? ? ???!
?????? ?++, ?????? ???????!!! ?????????? ??????? ?++!!! ?????? ???????
?????????????, ????????, ????????????, ???????, ???????? ?? ?????????? ?
???????? ???, ?????? ???????????, ???????????? ? IDE! ???????? ??????? ? ?????
????? ? ????! ?++! */
View raw paste Reply