mongoc_collection_destroy man page

mongoc_collection_destroy() — This function shall destroy a mongoc_collection_t and its associated resources.

Synopsis

void
mongoc_collection_destroy (mongoc_collection_t *collection);

Parameters

collection
A mongoc_collection_t

Description

This function shall destroy a mongoc_collection_t and its associated resources.

NOTE

Always destroy a mongoc_cursor_t created from a collection before destroying the collection.

Colophon

This page is part of MongoDB C Driver. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.

Referenced By

mongoc_client_get_collection(3), mongoc_collection_copy(3), mongoc_collection_t(3), mongoc_database_get_collection(3).

2016‐10‐19 MongoDB C Driver