[#BloombergLP-bdljsn-Location]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::Location
:relfileprefix: ../../
:mrdocs:

This unconstrained (value&hyphen;semantic) attribute class specifies a location in a (JSON) document&period;

== Synopsis

Declared in `&lt;bdljsn&lowbar;location&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class Location;
----

== Description

See the  for information on the class attributes&period; Note that the class invariants are identically the constraints on the individual attributes&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdljsn/Location/2constructor-06.adoc[`Location`]         [.small]#[constructor]#
| Constructors
| xref:BloombergLP/bdljsn/Location/operator_assign.adoc[`operator&equals;`] 
| Assign to this object the value of the specified `rhs` object&period;
| xref:BloombergLP/bdljsn/Location/offset.adoc[`offset`] 
| Return the `offset` attribute of this object&period;
| xref:BloombergLP/bdljsn/Location/print.adoc[`print`] 
| Format this object to the specified output `stream`&period;
| xref:BloombergLP/bdljsn/Location/reset.adoc[`reset`] 
| Reset this object to the default value (i&period;e&period;, its value upon default construction)&period;
| xref:BloombergLP/bdljsn/Location/setOffset.adoc[`setOffset`] 
| Set the &quot;offset&quot; attribute of this object to the specified `value`&period;
| xref:BloombergLP/bdljsn/Location/swap.adoc[`swap`] 
| Efficiently exchange the value of this object with the value of the specified `other` object&period; This method provides the no&hyphen;throw exception&hyphen;safety guarantee&period;
| xref:BloombergLP/bdljsn/Location/2conversion.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration&lt;Location, IsBitwiseMoveable&gt;`] 
| Declare that this type is bitwise moveable&period;
|===


== Friends

[cols="1,4"]
|===
| Name| Description
| `xref:BloombergLP/bdljsn/swap-033.adoc[BloombergLP::bdljsn::swap]`
| Exchange the values of the specified `a` and `b` objects&period; This function provides the no&hyphen;throw exception&hyphen;safety guarantee&period;
| `xref:BloombergLP/bdljsn/hashAppend-0d.adoc[BloombergLP::bdljsn::hashAppend]`
| Pass the specified `object` to the specified `hashAlg`&period;
|===

== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdljsn/operator_not_eq-01c7.adoc[`operator!&equals;`]
| Return `true` if the specified `lhs` and `rhs` do not have the same value&period;
| xref:BloombergLP/bdljsn/operator_eq-07c2.adoc[`operator&equals;&equals;`]
| Return `true` if the specified `lhs` and `rhs` have the same value&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
