From 051be3909a4eb0a1e021172db836b325a61f100c Mon Sep 17 00:00:00 2001 From: Brody Date: Thu, 3 Oct 2024 15:49:58 -0700 Subject: [PATCH] moved empty.md into the correct file location as specified by issue #5354 --- .../cpp/concepts/maps/terms/empty/empty.md | 55 +++++++++++++++++++ empty.md | 0 2 files changed, 55 insertions(+) create mode 100644 content/cpp/concepts/maps/terms/empty/empty.md delete mode 100644 empty.md diff --git a/content/cpp/concepts/maps/terms/empty/empty.md b/content/cpp/concepts/maps/terms/empty/empty.md new file mode 100644 index 00000000000..9a510cfb892 --- /dev/null +++ b/content/cpp/concepts/maps/terms/empty/empty.md @@ -0,0 +1,55 @@ +--- +Title: 'empty' +Description: 'Introduces the basic functionality and syntax of the C++ STL map class .empty() member function.' +Subjects: + - 'Computer Science' +Tags: # Please only use Tags in the tags.md file (https://github.com/Codecademy/docs/blob/main/documentation/tags.md). If that list feels insufficient, feel free to create a new Tag and add it to tags.md in your PR! + - 'C++' + - 'Data Structures' + - 'Documentation' + - 'Functions' + - 'Map' + - 'Programming' +CatalogContent: # Please use course/path landing page slugs, rather than linking to individual content items. If listing multiple items, please put the most relevant one first +--- + +The C++ STL map class **.empty()** function is a member function of the STL map class. This function can be called on an STL map object, and returns true if the map object on which it is called is empty (e.g. contains no key-value pairs), and returns false if the map object contains one or more elements. + +## Syntax + +The map class .empty() member function can be called using the dot (.) operator, as shown below. The function takes no parameters, and the return value is either a boolean true value or a boolean false value, depending on whether the map object on which the function is called is or is not empty, respectively. + + +[Text, code, images, parameters, etc. about the syntax] + +## Example + +[Text, code, images, etc. about example 1] + +## Codebyte Example (if applicable) + +We can currently support: + +- Python +- JavaScript +- Ruby +- C++ +- C# +- Go +- PHP + +See [content-standards.md](https://github.com/Codecademy/docs/blob/main/documentation/content-standards.md) for more details! + +```codebyte/cpp +// Example runnable code block. +#include +#include +#include + +int main(){ + + map mapObject + + return 0; +} +``` \ No newline at end of file diff --git a/empty.md b/empty.md deleted file mode 100644 index e69de29bb2d..00000000000