defensive-coding-guide/defensive-coding/bo/CXX/Std.po

55 lines
1.7 KiB
Text

# AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: Defensive Coding Guide\n"
"POT-Creation-Date: 2013-03-12T03:19:44\n"
"PO-Revision-Date: 2013-03-19 15:30+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: Tibetan <trans-bo@lists.fedoraproject.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: bo\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#. Tag: title
#, no-c-format
msgid "The C++ standard library"
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"The C++ standard library includes most of its C counterpart by reference, "
"see <xref linkend=\"sect-Defensive_Coding-C-Libc\" />."
msgstr ""
#. Tag: title
#, no-c-format
msgid "Containers and <literal>operator[]</literal>"
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"Many containers similar to <literal>std::vector</literal> provide both "
"<literal>operator[](size_type)</literal> and a member function "
"<literal>at(size_type)</literal>. This applies to "
"<literal>std::vector</literal> itself, <literal>std::array</literal>, "
"<literal>std::string</literal> and other instances of "
"<literal>std::basic_string</literal>."
msgstr ""
#. Tag: para
#, no-c-format
msgid ""
"<literal>operator[](size_type)</literal> is not required by the standard to "
"perform bounds checking (and the implementation in GCC does not). In "
"contrast, <literal>at(size_type)</literal> must perform such a check. "
"Therefore, in code which is not performance-critical, you should prefer "
"<literal>at(size_type)</literal> over "
"<literal>operator[](size_type)</literal>, even though it is slightly more "
"verbose."
msgstr ""