From: Alexey Borisenkov <grizlik78@gmail.com>
To: community@lists.altlinux.org
Subject: Re: [Comm] Ошибка (или нет?) в std::partition
Date: Fri, 25 Aug 2017 02:40:17 +0400
Message-ID: <83e5e0f5-cb75-f7b5-44ad-3b31b41d95bf@gmail.com> (raw)
In-Reply-To: <101a26f1-1b29-ca8d-c1f3-d86b8797ef91@etersoft.ru>
25.08.2017 02:13, Pavel Vainerman пишет:
> -10 0 -4 5 -2 0 3 1 7 8 9
> -10 -2 -4 5 0 0 3 1 7 8 9
>
> Так вот смущает меня почему "5" не правее нулей?
> Может ли кто-нибудь пояснить, почему так?
Потому что функция делит числа на "меньше нуля" и "не меньше нуля". С
этой точки зрения между 0 и 5 нет разницы, они оба не меньше нуля.
Сортировки никто не обещал.
next prev parent reply other threads:[~2017-08-24 22:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-24 22:13 Pavel Vainerman
2017-08-24 22:40 ` Alexey Borisenkov [this message]
2017-08-25 7:52 ` Pavel Vainerman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83e5e0f5-cb75-f7b5-44ad-3b31b41d95bf@gmail.com \
--to=grizlik78@gmail.com \
--cc=community@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git